Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
RiverOmega opened this issue Nov 23, 2023 · 3 comments
Closed

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

RiverOmega opened this issue Nov 23, 2023 · 3 comments
Labels
enhancement New feature or request

Comments

@RiverOmega
Copy link

RiverOmega commented Nov 23, 2023

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
Copy link
Author

RiverOmega commented Nov 23, 2023

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
Copy link

I too would love this feature

@Vinzent03 Vinzent03 added the enhancement New feature or request label Jan 19, 2024
@Vinzent03
Copy link
Collaborator

There is now a commit amend command

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants