Recover files which are added but not commited

Viewed 67

I am using git version control system in my project. Today after completing my work, I have added all the files using

git add [file-name]

and then forget to commit changes to server, I have pulled and pushed commands as below

git pull --rebase origin [branch-name]
git push origin [branch-name]

After a minute I got that I have forgot to commit (using command git commit -m "comment") changes to server. Now, is there any way to get my changes back? I've already googling and tried find similar issues on Stack Overflow but could not get satisfied solution.

1 Answers
Related