Can I tell git pull to overwrite instead of merge?

Posted by Michael Stum on Stack Overflow See other posts from Stack Overflow or by Michael Stum
Published on 2010-04-19T03:24:34Z Indexed on 2010/04/19 3:33 UTC
Read the original article Hit count: 467

Filed under:

As far as I see, git pull someRemote master tries to merge the remote branch into mine.

Is there a way to say "Completely discard my stuff, just make me another clone of the remote" using git pull? I still want to keep my own repository and keep it's history, but I want to have a 1:1 copy of someRemote's master branch after that command.

© Stack Overflow or respective owner

Related posts about git