Skip to content

Instantly share code, notes, and snippets.

@amrtn
Last active March 13, 2018 10:10
Show Gist options
  • Save amrtn/52ccc7deeb329d07e5e810bcef84d01c to your computer and use it in GitHub Desktop.
Save amrtn/52ccc7deeb329d07e5e810bcef84d01c to your computer and use it in GitHub Desktop.
Git aliases
To be added to the ~/.gitconfig file
[alias]
lol = log --graph --decorate --pretty=oneline --abbrev-commit --all
st = status -sb
lg = log --graph --decorate --pretty=oneline --abbrev-commit --all
showfiles = show --stat --oneline
sh = show --stat --oneline
@amrtn
Copy link
Author

amrtn commented Mar 13, 2018

  • showfiles and sh: list all files in a commit. Usage:

    $ git sh 7166148111
    7166148111 Add currentUserHasSupervisor element to the main.home xml response
     web/src/main/java/org/fao/geonet/constants/Geonet.java   |  4 +++-
     web/src/main/java/org/fao/geonet/services/main/Info.java | 16 ++++++++++++++++
     web/src/main/webapp/WEB-INF/config.xml                   |  3 +++
     3 files changed, 22 insertions(+), 1 deletion(-)

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