How do I return uncommitted changes after git checkout : I had some changes on master then created a branch which added all my changes to my code. Then I went back to master to remove my changes that I did. I entered git checkout . on master which removed my changes on master and the branch. Any Ideas?