Skip to content

Instantly share code, notes, and snippets.

@stgpetrovic
Created March 5, 2014 10:28
Show Gist options
  • Save stgpetrovic/9364785 to your computer and use it in GitHub Desktop.
Save stgpetrovic/9364785 to your computer and use it in GitHub Desktop.
Print git show with names relative to cwd.
sed s/${PWD##$(git rev-parse --show-toplevel)/}/./ <(git show --name-only)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment