Skip to content

Instantly share code, notes, and snippets.

View rdwivedi's full-sized avatar

Ritesh Dwivedi rdwivedi

  • Three Tier
  • Gurgaon
View GitHub Profile
olegafx /
Last active January 24, 2021 10:57
Useful git commands
# Save branch history and revert easily
git merge --no-ff
git revert -m 1 <hash>
# Show n lines of context around diff lines instead of the usual +/- 3
git diff -U<n>
# Check which branches are merged
git branch --merged