I’ve modified a file and want to get the file without modifications from the server I git pulled it from. How can I download the file from the server, or get back the file’s initial state?
I’ve modified a file and want to get the file without modifications from the
Share
If the file is just staged, you do this to unstage the file:
Then to discard the modifications you’ve made to it: