Git recover uncommitted changes

后端 未结 6 760
萌比男神i
萌比男神i 2020-12-06 11:52

I had a lot of local changes.

I just accidentally did

git merge another_branch
git reset --hard HEAD^

on a lot of work. :( with the

6条回答
  •  温柔的废话
    2020-12-06 12:02

    Although the uncommitted modifications to tracked files will have been lost, I think any untracked files will still be around unless you subsequently deleted them.

提交回复
热议问题