Skip to content

Instantly share code, notes, and snippets.

@vivascau
Created December 23, 2014 15:21
Show Gist options
  • Save vivascau/5e664c85f4afeaee1716 to your computer and use it in GitHub Desktop.
Save vivascau/5e664c85f4afeaee1716 to your computer and use it in GitHub Desktop.
get list of folders staged for commit
git status -s | cut -d " " -f2- | cut -d / -f4 | uniq - > [filename]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment