Learning What A Git Revert Is
Learning What A Git Revert Is
Nobody is allowed to laugh.
I am learning a new concept in git and so the best thing for me to do is write. "The git revert command is a forward-moving undo operation that offers a safe method of undoing changes. Instead of deleting or orphaning commits in the commit history, a revert will create a new commit that inverses the changes specified. Instead of deleting or orphaning commits in the commit history, a revert will create a new commit that inverses the changes specified." Hmmm so what does this mean then.
This means that instead of deleting old commits, a new commit is created which inverts the new changes. Hmm. This is very cool. "Instead of removing the commit from the project history, it figures out how to invert the changes introduced by the commit and appends a new commit with the resulting inverse content. This prevents Git from losing history, which is important for the integrity of your revision history and for reliable collaboration."
Thus reverting does NOT delete history. It "adds a new commit that 'reverses' changes from an earlier on commit." I don’t know if I have got this
But I am going to update my summary tomorrow

Comments
Post a Comment