DEV Community

Discussion on: Turn around your Git mistakes in 17 ways

Collapse
 
robinbastiaan profile image
Robin Bastiaan • Edited

Good overview of the different options at your disposal! Thank you very much for the article.

I just want to add that not all methods will remove your data from the repository. In normal circumstances that is exactly what you want. However, if you accidentally committed a password for example, this is something to look out for. In that situation it can make sence to revert your commit by rewriting history, but this will only make sence if you have not yet commited your code to the remote repo. If that is the case, you are better off considering your password compromised and start changing your password.

Collapse
 
smitterhane profile image
Smitter

Changing your password is a good security precaution at personal level. I agree👍.

Some comments have been hidden by the post's author - find out more