revert a commit while keeping changes
See original GitHub issueSometimes I accidentally commit an additional file and find myself having to google one more time the exact syntax of the git reset --soft HEAD~1
command.
This command undoes the latest commit while keeping the changes.
It would be great if Github for Windows had this functionality through the UI! Not necessarily undoing the latest commit, maybe instead being able to undo an arbitrary commit.
Thanks!
Issue Analytics
- State:
- Created 4 years ago
- Comments:7 (5 by maintainers)
Top Results From Across the Web
Can I delete a git commit but keep the changes?
Yes, you can delete your commit without deleting the changes: ... You can revert a specific commit while keeping the changes in your...
Read more >Undo last commit but keep changes
Undo last commit but keep changes · GitHub. Instantly share code, notes, and snippets.
Read more >Revert last commit but keep all the changes to the files with ...
Revert last commit but keep all the changes to the files with git reset --soft HEAD~1 · Check current status · Commit ·...
Read more >How to revert a Git commit: A simple example
In this quick git revert example, we'll show you how to revert a Git commit and undo unwanted changes.
Read more >Undoing Recent Commits While Keeping Changes to Files ...
Make Changes to Files · The default reset command is "git reset " (where defaults to HEAD, which is last committed state) ·...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
It doesn’t fade away after a period of time, but it might be hard to notice because the button blends into the rest of the form. cc @desktop/design for 👀 and thoughts.
I’m going to tweak this discussion to focus on that “Undo” form - thanks for the clarifying details @marcospgp!
I’m going to bump #6901 because I think making that more visible to the user would have helped in this situation.