denolehov / obsidian-git

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

[Feature]: Button/Setting for "git commit --amend" #648

Closed RiverOmega closed 5 months ago

RiverOmega commented 7 months ago

Feature

As of now (I think), it's not possible to perform the equivalent of "git commit --amend" via the interface. I would love a button or checkbox close to the "Commit-button" that gives me the option to amend to an existing commit instead of always creating new ones. I share my vault via git with others, and to keep the history clean, amending is a great tool.

RiverOmega commented 7 months ago

To give some context. Our preferred workflow is akin to:

  1. Checkout new branch "river/documentation-work"
  2. Do work in branch
  3. Package all changes in one commit:
    • Title: Lots of work
      • Did this...
      • ... and that
      • ... and a little bit of this
  4. Push to branch
  5. Create merge-request to main-branch so that others can review changes.

With the current implementation, step 3. must be handled outside of Obsidian, via terminal using either "git squash" or "git commit --amend". If the requested feature were to be implemented, I can perform step 1-4 using Obsidian only.

ParkerRobb commented 7 months ago

I too would love this feature

Vinzent03 commented 5 months ago

There is now a commit amend command