Skip to content

Instantly share code, notes, and snippets.

@dexfs
Last active October 19, 2018 15:15
Show Gist options
  • Save dexfs/015021641fde7f24c7a7edff3dbe4c0d to your computer and use it in GitHub Desktop.
Save dexfs/015021641fde7f24c7a7edff3dbe4c0d to your computer and use it in GitHub Desktop.

#DELETE BRANCHES MERGED INTO CURRENT BRANCH

git branch --merged | egrep -v "(^\*|master|dev|develop)" | xargs git branch -d

How to list only the file names that changed between two commits?

git diff --name-only SHA1 SHA2

where you only need to include enough of the SHA to identify the commits. You can also do, for example

git diff --name-only HEAD~10 HEAD~5

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