version control - Can you undo 'git reset --hard HEAD' if never having made a commit? -


i lost code after running

git reset --hard head 

and never committed work. there way code back? logged anywhere? can undo command?

nope, git reset --hard , git checkout -f both destructive of changes haven't been committed.


Comments