github - Restore file from git repo without commit -
I removed a file from my local workspace and then I realized that it is needed. I have not committed or have not pushed for the repo yet, so I want to get that file back in my local area.
My problem is that my local repo 10 is ahead of the remote master, so only the cloning owner is not good, nor is he checking a different commitment. I am afraid that I will either erase my local repo and source, or screw more things.
Thanks for any help.
If you have not made this change yet, the following will return the file to you:
git checkout & lt; Filename & gt; The exact file name can be obtained through the git status .
Comments
Post a Comment