Skip to content

Instantly share code, notes, and snippets.

View sushobhana's full-sized avatar
🎯
Focusing

Sushobhana Patra sushobhana

🎯
Focusing
  • Hyderabad
View GitHub Profile
@stevenyap
stevenyap / Git Reset-Revert.md
Created November 17, 2013 09:50
Git reset and revert: Undoing changs

Difference between reset and revert

  • Reset rewinds history (files + commits) back to the previous commits
  • Revert rewinds your files back to the previous commits by adding a new commit to show this
  • You should use revert (especially if you have pushed) as it does not rewrite history

Git Reset

# If you are pulling, rebasing or your new code is a mess, and you want to return to the last committed point: