Skip to content

Instantly share code, notes, and snippets.

@arttuladhar
Last active July 7, 2023 02:13
Show Gist options
  • Save arttuladhar/0fcb2c2d865474b9bc097b364d6f3e58 to your computer and use it in GitHub Desktop.
Save arttuladhar/0fcb2c2d865474b9bc097b364d6f3e58 to your computer and use it in GitHub Desktop.
## Prune Remote Branches
git remote prune origin
git fetch origin --prune
# Git Commit Logs between Two Hash
git log --oneline 51e5a6d1..29612ede
## Git Branch by Commit 
for branch in `git branch -r | grep -v HEAD`;do echo -e `git show --format="%ci %cr" $branch | head -n 1` \\t$branch; done | sort -r
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment