in Crafts

Pull a git repo and overwrite your local master entirely

Pull and overwrite local master:

$ git fetch
$ git branch old-master 
$ git reset --hard origin/master
$ git merge -s ours old-master 

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

  • Related Content by Tag