I have code on my client that conflicts with a checked in version. Is there a way to tell Git to “ignore the origin version and force my version over it”?
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.
Yes, you can do this using the
git push -fcommand. The-fcommand is the “force” option, which pushes your current ref to the upstream, even if your current history is not derived from the upstream.You can easily lose work with this command. Be careful.