Reputation: 317
I accidentally overwritten unstaged files on server by:
git fetch origin [branch_name]
git checkout FETCH_HEAD -- [branch_name]
Upvotes: 2
Views: 362
Reputation: 415
Your changes are lost. To avoid these situations in the future, use git stash before making moves that you are not sure of.
Upvotes: 1