My Profile Photo

Hao's Keeper


A blog to place memos


Git Commit Your Changes Or Stash Them Before You Merge

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