The following commands:
git fetch
git reset --hard origin/<branch>
will discard all local changes.
Where as:
git pull
Which is exactly the same as:
git fetch
git merge origin/<branch>
will attempt to preserve local changes.
The following commands:
git fetch
git reset --hard origin/<branch>
will discard all local changes.
Where as:
git pull
Which is exactly the same as:
git fetch
git merge origin/<branch>
will attempt to preserve local changes.