I am looking a file in master on git hub.
I am looking at the same file on my local repo but it is not reflect changes in the master file on the repo committed by someone else.
I tried git pull
git fetch and merge.
What else to I have to do?
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 there are no changes that you want to keep in your working folder, and assuming you did run fetch successfully, you can
Then point master to the remote’s version (assuming your remote is called origin):
or
If you get an error with the last 2, you can add the
--forceoption but remember to save the master to another branch or tag before doing so withor
the “yourname” part of the remote branch or tag is to let others know that it’s your branch and you don’t necessarily believe it to be valuable to others.