git reset 重置

背景和价值

1 git reset --hard origin/feature_dev

says: throw away all my staged and unstaged changes, forget everything on my current local branch and make it exactly the same as origin/master.

2 You can undo this move by using git reset --hard HEAD@{1}. HEAD@{1} varies from situation to situation so you're advised to search for it in git reflog

参考资料

posted @ 2025-06-21 15:55  向着朝阳  阅读(8)  评论(0)    收藏  举报