Commit the changes
git commit -m "updating message"
Stash
git stash
then merge:
git stash pop
Discard the local changes
git reset --hard
or
git checkout -t -f remote/branch
For spacific file
git checkout filename
git commit -m "updating message"
git stash
then merge:
git stash pop
git reset --hard
or
git checkout -t -f remote/branch
For spacific file
git checkout filename