in Web & Tech

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 

Write a Comment

Comment

  • Related Content by Tag