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
Put "edit committ" in the context menu #2794
Comments
@mortb, in the context menu for the commit you want to edit try "Advanced - Fixup commit". Then run interactive rebase with Autosquash option. |
@Radrik5, many thanks for your reply. I do this quite a lot so having this in the context menu would be a good feature for me. |
Anyway, behind the scenes there will be interactive rebase. Git doesn't have an "edit commit" command and Git Extensions is just a wrapper over Git commands. In addition, merge conflicts are possible and you will have to resolve them manually and then click the "Continue rebase" button. Without merge conflicts you can edit only the most recent commit, but for that there is "Amend Commit" option. What do you think about adding "Commit & Autosquash" button to the "Fixup commit" window? It will call interactive rebase with the parent of the selected commit and "Autosquash" option. |
Yeah, that would seem to be a nice solution. Pressing the "commit & auto squash" would (behind the scenes) lead to
Yes that would be nice 👍 |
I think it would be nice to have an "edit commit" command in the context menu.
We use gerrit and we tend to some edits to my commits before they are merged in to the repository.
We mostly do my edits by using interactive rebase with either "edit" or "fixup" commits. This is somewhat error prone as errors do occur when moving lines in the commit list.
Having an option in the context menu to edit the commit without having to interactive rebase would really be a killer feature for us.
The text was updated successfully, but these errors were encountered: