I cloned my repository. Created a project out of the folder in to which I cloned. Made changes to the 5files, ran the tests. Everything is OK. Then I realized I did not created a branch and all my changes are in 'master' branch. I 'git add \path\to\file(s)', and I did not committed them. I PANICKED. I created a new branch 'X' by doing
git checkout -b 'X'
.
NOT realizing, by switching thus, all the content ALREADY CAME from 'master' in to 'X', following a tip from the internet, I did
git checkout master path/to/file(s) which were changed in master
in order to bring those 5 files in to branch 'X'.
Now realizing my mistake, I went in to 'master' to see my file changes. They are NOT there either in 'master' or 'X' branches!! When I ran 'git status'
I see the following.`On branch master
Your branch is ahead of 'origin/master' by 3065 commits.
(use "git push" to publish your local commits)
` Where are the changes gone? How to recover them ? It is 4 days worth of work, sacrificing my thanksgiving holidays. Will some one please help me here? I am working in intelliJ. I am desperate. THANKS A LOT IN ADVANCE.