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

Add an alias to undo a commit #8

Open
5 tasks
lakruzz opened this issue Feb 12, 2023 · 1 comment
Open
5 tasks

Add an alias to undo a commit #8

lakruzz opened this issue Feb 12, 2023 · 1 comment
Labels
Template Template issue

Comments

@lakruzz
Copy link
Member

lakruzz commented Feb 12, 2023

  • Add and alias undo that reverts the most recent commit?
  • What happens if you undo a commit that is already pushed to GitHub?
  • Can you use this command to undo a commit that isn't your own?
  • What happens if the commit you undo have two (or more) parents?
  • Add, commit and push your changes

Sometimes when you've committed your work - you instantly remember, that you forgot something.

  • You didn't add all the files!
  • You didn't put in the right commit message
  • you're simply not done.
  • ...

It would be nice to have command git undo you could run to undo the most recent commit.

Go and investigate what git command can help you to achieve this and then add the undo alias to the .gitignore file you created for your team.

@lakruzz lakruzz added the Template Template issue label Feb 12, 2023
@lakruzz
Copy link
Member Author

lakruzz commented Feb 12, 2023

Next level!

Dig this1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Template Template issue
Projects
None yet
Development

No branches or pull requests

1 participant