I deleted the default.aspx.cs file by mistake in my local master branch.
How can I get this file back from my remote repositories master?
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.
If you haven’t staged or committed the deletion then a simple:
will retrieve the file from the version in the index.
If you really need to go back to the remote master’s version (which would only be different if you’ve staged or committed other changes to the file before deleting it), you can do: