Skip to content

Instantly share code, notes, and snippets.

@paulz
Last active June 11, 2025 21:38
Show Gist options
  • Save paulz/bef72d30d483008f53717f31d153000f to your computer and use it in GitHub Desktop.
Save paulz/bef72d30d483008f53717f31d153000f to your computer and use it in GitHub Desktop.
git aliases I often use
# Here is how to set up often used aliases:
#
# alias.co checkout
# alias.st status
# alias.amend commit --amend -C HEAD
#
git config --global alias.amend "commit --amend -C HEAD"
git config --global alias.st status
git config --global alias.co checkout
git config --global pager.tag false
alias.co checkout
alias.st status
alias.amend commit --amend -C HEAD
@paulz
Copy link
Author

paulz commented Aug 23, 2022

git push -u origin head

@paulz
Copy link
Author

paulz commented Jun 11, 2025

Make git tag just list tags

https://gist.github.com/paulz/bef72d30d483008f53717f31d153000f#file-add-aliases-sh-L10

This makes git tag show short list immediately, while git log shows recent on top.

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