Search posts, tags, users, and pages
New to Git? Learn what Git is, why developers use it, the three areas of Git, and the essential commands: init, add, commit, log, revert, and reset.
Hardik Babla
@hardikbabla · dehradun, india
Btech CSE l Learning Full-Stack @ ChaiCode l Learning in Public 🚀
Markdown supported · ⌘↵ to post
StackShortlist
Nice that you put git revert before reset --hard. Beginners tend to reach for reset first and lose work they didn't mean to. Might be worth a one line note that reflog can usually rescue you after a bad reset.
StackShortlist
Nice that you put git revert before reset --hard. Beginners tend to reach for reset first and lose work they didn't mean to. Might be worth a one line note that reflog can usually rescue you after a bad reset.