Hi friends, I have faced some critical case in git. Initial I have three branches master, dev, staging . In dev and staging branches I have followed all the commits up to date. I have followed these steps regularly for each and every process (For branching strategy). All the initial configuration has been done previously. git add . (Currently I'm in dev branch) git commit -m "Commit message" git push origin dev git checkout staging git fetch git pull origin staging git merge --no-ff dev git push origin staging git checkout dev I have just maintained the initial commit only in the master branch. One day when I try to checkout master branch, all my changes as been changed to deleted state. I have lost all my changes. I have retrieved my changes by using this command git reset --hard origin/dev Just try this command to get you changes back to it.