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

support "undo last commit" #758

Closed
extrawurst opened this issue Jun 1, 2021 · 5 comments · Fixed by #769
Closed

support "undo last commit" #758

extrawurst opened this issue Jun 1, 2021 · 5 comments · Fixed by #769
Labels
enhancement New feature or request good first issue Good for newcomers
Milestone

Comments

@extrawurst
Copy link
Collaborator

I like this feature in vscode:

  • it sets HEAD back to the previous commit
  • puts all changes back into the index
@extrawurst extrawurst added enhancement New feature or request good first issue Good for newcomers labels Jun 1, 2021
@franciscod
Copy link

git-cola (https://git-cola.github.io/) has this since forever, it's a nice feature :) I think it's git reset --soft combined with some magic to preserve the commit message

@extrawurst
Copy link
Collaborator Author

git-cola (https://git-cola.github.io/) has this since forever, it's a nice feature :) I think it's git reset --soft combined with some magic to preserve the commit message

Does that mean you want to implement this? Or what’s your point? ;)

@franciscod
Copy link

maybe once i finish #759 :)

@kosayoda
Copy link
Contributor

kosayoda commented Jun 4, 2021

Would a more generic feature be supporting resets to any commit in the log? That would be a nice feature in my opinion.

@extrawurst
Copy link
Collaborator Author

extrawurst commented Jun 4, 2021

Would a more generic feature be supporting resets to any commit in the log? That would be a nice feature in my opinion.

Reset to a commit is different to what the proposal says. git reset does not put all the changes that were rolled back into the index

@extrawurst extrawurst added this to the v0.17 milestone Jun 7, 2021
@extrawurst extrawurst linked a pull request Jun 7, 2021 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants