Skip to content

Instantly share code, notes, and snippets.

@xecutioner
Last active August 16, 2016 09:28
Show Gist options
  • Save xecutioner/2efb48838e5e2661cf33 to your computer and use it in GitHub Desktop.
Save xecutioner/2efb48838e5e2661cf33 to your computer and use it in GitHub Desktop.
git tricks
Remove merged branch
git branch --merged | grep -v "\*" | grep -v master | grep -v dev | xargs -n 1 git branch -d
Git log of code snippet
git log -S'the line from your file' -- path/to/your/file.txt
@Nikeshsuwal
Copy link

Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment