Git: How to Undo a Commit Without Undoing Your Career

Git’s destructive commands run faster than you can read their output. Chronological Representation of a git tree with an arrow pointing backwards from a branch Want to come back later? Save this to readplace.com . Git: How to Undo a Commit Without Undoing Your Career | Reader View It's a beautiful summer on January 2014. I ran git reset --hard HEAD~3 on a Friday afternoon. The branch was main. I thought it was feature/auth-refactor. Three commits and two days of work disappeared. I had no backup branch and

添加评论
点赞收藏
点踩分享查看原文
评论
?
参与讨论