Skip to content

Instantly share code, notes, and snippets.

@TheWass
Last active August 6, 2018 15:32
Show Gist options
  • Save TheWass/3d4d4cc617ef566255c2 to your computer and use it in GitHub Desktop.
Save TheWass/3d4d4cc617ef566255c2 to your computer and use it in GitHub Desktop.
This is a list of useful git shortcuts to put into your global config.
  1. Run git config -e --global
  2. Paste this into the file:
[alias]
        superlog = log --graph --abbrev-commit --decorate --date=relative --format=format:'%C(bold blu$        supertimelog = log --graph --abbrev-commit --decorate --format=format:'%C(bold blue)%h%C(reset$        co = checkout
        br = branch
        ci = commit
        st = status
        psuh = push
        spuh = push
        upsh = push
        sphu = push
        unstash = stash pop
        rekt = reset --hard
        dun = "!f() { git add .; git commit -m \"$@\"; git push; }; f"

git superlog gives you a nice human-readable log with branch paths. Great for viewing or printing. git supertimelog includes timestamps with the superlog.

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