What is the GIT command to blow away all changes since last commit? git blowaway filename git checkout filename git mod filename None of the options
Answers
Answered by
0
GIT: A software that is used to monitor changes to a file and to keep a history on the changes performed on the file is referred to as GIT.
GIT originates from linux and is open sourced freeware.
GIT is user friendly and allows a wide range of operations to be performed by using its commands.
In order to blow away all the changes till the last commit, git checkout filename is the command to be used.
Hence, git checkout filename is the answer.
Answered by
1
In order to blow away and start a new fresh, you need to use the command ‘git resent Head-1’.
Once this is done, you need to run the git command. This will cause the commit to be undone under the effect.
Then you can change the pre-add stage.
This will be easy with:
Git reset – hard HEAD^
Similar questions