I know that upon pulling there will be conflicts, but I already know that the repository version is better. How do I resolve all conflicts on the command line with a git command
something like $> git resolve conflict with theirs or something
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 don’t want to keep your changes then pull is the wrong action. If the repository version is unequivocally better you can just fetch and reset.
E.g.
Obviously be careful with this, as you may lose uncommitted changes. You may want to do a plain
git reset origin/masterand remove your local changes carefully by hand.