Thursday, August 13, 2015

How to overwriting local changes in GIT using Sourcetree


  1. Open Sourcetree
  2. Open repository 
  3. At the ribbon bar, click Terminal


  4. At the terminal window, type the following commands:

    git fetch --all
    git reset --hard {remote branch} (example: origin/master)
    git pull origin master

No comments:

Post a Comment