GIT - 4.9 Cancellation of modifications
We will cancel some of our modifications by passing through the Git Transit zone, then returning to our modifications, I start in my terminal in the restitory test. We are on the master with nothing to commit in a clean work directory so start I will modify the file we will go to our files by doing code then the name of our file, here I will put a little random text which will be canceled , I go to the line, here I record then I will do a Git status. Back at the terminal you see that we have our modified cuckoo file I will make an addition to the preparation zone with git add -All like this if I do a git status we can see that we have our modified files if I decide that I Do not really want these changes and well what I could do to remove the modifications is the Git Reset command and the special Head pointer in capital letters and the file to decompress in our case cuckoo.html so Git Reset Head in Cuckoo Castery. HTML. Git replied by saying that the steps have been reset, if we open our cuckoo file so code cuckoo.html, the text is still there but the change was canceled on Git. Back on the terminal if I make a Git Status, it shows that we have our modified file and I do not want any of these modifications. To completely ignore these modifications I will return to the last known condition of this file which is in Git restitory to do this we will make the Git Checkout order like this, - space, the name of the file. Check if it worked well with the Git Status command, we are back in a new workpiece, what about the file? We will do code.html to inspect the file we can see that our last line has been removed, our modifications have disappeared.