CodeGuy
CodeGuy

Reputation: 28905

Git commands to push and override code

How do I push code I have using git without it complaining to me about conflicts or anything. I want it to ignore conflicts and simply replace what is on our git server with the code I am pushing. How can I do this?

Upvotes: 2

Views: 860

Answers (1)

SLaks
SLaks

Reputation: 887807

Add -f.

Note that this will blow away other people's code.

Upvotes: 3

Related Questions