denolehov / obsidian-git

Backup your Obsidian.md vault with git
MIT License
6.14k stars 250 forks source link

[Bug]: Branching might need some working #634

Closed SrGeneroso closed 4 months ago

SrGeneroso commented 8 months ago

Describe the bug

note: I know to use git for everyday use in cli and vscode, but I'm testing this plugin to teach somebody with less expertise

Switching branches

When I try to change branches I get this message: It seems workspace.json has changed

image

which could be potentially avoided by adding the file to the gitigonre but I argue that if the options are to commit or stash it maight be nice to have a prompt to do one of those. Talking about it, in the side panel nor the command palette give the choice for stashing

image image

featuring Branches

Since the plugin support branches, and moreso, let's you create them, it looks like I can't not backup if the branch is not created in the repo. Obsidian_GI7ZlhrnPl It happens both with the sidebar and the command palette. When using backup button in the main branch, which is created, it makes the commits and then push. I think this behaviour can be misleading for users. Might be possible to create remote branchs instead of local ones? You can switch to those so maybe.

Relevant errors (if available) from notifications or console (CTRL+SHIFT+I)

No response

Steps to reproduce

Not applicable, Should this be a discussion instead?

Expected Behavior

No response

Addition context

Sorry I have so many plugins

SYSTEM INFO: Obsidian version: v1.4.16 Installer version: v1.4.16 Operating system: Windows 10 Pro 10.0.22621 Login status: logged in Catalyst license: none Insider build toggle: off Live preview: on Legacy editor: off Base theme: dark Community theme: none Snippets enabled: 0 Restricted mode: off Plugins installed: 21 Plugins enabled: 19 1: Typing Assistant v0.2.1 2: QuickAdd v1.4.0 3: Iconize v2.6.1 4: Excalidraw v1.9.26 5: Dataview v0.5.61 6: Advanced Tables v0.19.1 7: Kanban v1.5.3 8: Calendar v1.5.10 9: Tasks v5.0.0 10: Templater v1.16.4 11: Advanced Slides v1.20.0 12: Obsidian Git v2.22.0 13: Thumbnails v1.3.0 14: YTranscript v0.9.1 15: Convert url to preview (iframe) v0.5.0 16: Buttons v0.4.19 17: Commander v0.5.1 18: Code Editor Shortcuts v1.14.0 19: Better CodeBlock v1.0.8

RECOMMENDATIONS: Community plugins: for bugs, please first try updating all your plugins to latest. If still not fixed, please try to make the issue happen in the Sandbox Vault or disable community plugins.

Operating system

Windows

Installation Method

None

Plugin version

2.22.0

chrda81 commented 4 months ago

+1 for the stash and stash pop feature

For example:

Or do I miss something?

SrGeneroso commented 4 months ago

cleaning issues, hope this got seen 😘