Skip to content

Instantly share code, notes, and snippets.

@johnkary
Created June 14, 2012 16:06
Show Gist options
  • Save johnkary/2931206 to your computer and use it in GitHub Desktop.
Save johnkary/2931206 to your computer and use it in GitHub Desktop.
Showing only files for a single commit
git config --global alias.hellobrian '!git --no-pager show --pretty="format:" --name-only'
Usage: git hellobrian c22e54d0ee0819f9d548b9249bed8998aa0107fb
Comments: The "!git" part isn't needed for all aliases, only in this case because your command changes environment variables, so it will expand "git" on execution. Usually you start an alias with "log --some-option --second-option"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment