Google ads Horizontal

Tuesday, May 10, 2016

git replace local version with remote version

This is the safest solution:
git stash
Now you can do whatever you want without fear of conflicts.
For instance:
git checkout origin/master
If you want to include the remote changes in the master branch you can do:
git reset --hard origin/master
This will make you branch "master" to point to "origin/master".

Revert single file:
git checkout origin/master <file location>