In GIT working repo i removed couple of files with command rm -rf not git rm, When i try to pull/fetch from the server(bare repo) files are not visible. How do i bring those file back ?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Revert to a previous commit. This will reset to last committed state:
Note…if you have other changes…be SURE you stash them first!
Here is an option taken from another post that might help you as well:
Where abcde is the commit #. You can use:
To get commit log.
Reset or revert a specific file to a specific revision using Git?