Skip to content

Instantly share code, notes, and snippets.

@alOneh
Created October 4, 2011 12:31
Show Gist options
  • Save alOneh/1261518 to your computer and use it in GitHub Desktop.
Save alOneh/1261518 to your computer and use it in GitHub Desktop.
Retrieve the path of a specific status with the output of git status -s (A, M, D, ??, ...)
// your_search can be : A, M, D, ??
git status -s | grep 'your_search' | awk '{print $2}'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment