I commit often my change with
git add *
and
git commit -m "message"
There is two week I discover branch so I create a branch and code in that branch. Now i exec git checkout master
and I lose lot of file(there is file that were before branch create that were deleted)
It's ruin 1 year of work.
After checking branch master my branch named test were erased(I don't how is it possible)
I've checked with recuva the file dispaer totally.
(sorry for my english)
Solved by @underscore_d:
1) git reflog
I obtain a list of last HEAD
c92fba6 HEAD@{0}: checkout: moving from bc679831379ae324856d02492aecdeb0abffff8d
to master
bc67983 HEAD@{1}: commit: bug fixe #32
fcaccea HEAD@{2}: commit: bug fixe #31
009579a HEAD@{3}: commit: bug fixe #30
so I type
2) git checkout bc67983
And Iget all my file back.