Think of git revert as a get out of jail free card whenever you make a mistake while collaborating on a project. The main thing is to understand the difference between revert and reset. Git revert is a source code control command typically known as a way to undo commits in Git, but it goes beyond that. Now for the GUI question you had, you can prob right click on the commit you want to get back to ( reset) or remove the changes that one commit made ( revert) by right clicking a commit in the history tree or maybe theres a button to do it. this is DANGEROUS operation so be careful if you use it, you can change the state for other users of the repo. you are changing the history of the project => when you perform git push you need to use the -force/ -f flag.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |