Skip to content

Instantly share code, notes, and snippets.

@daniloab
Last active September 13, 2021 21:01
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save daniloab/04e45c7f4145ce185c7898a25e25892a to your computer and use it in GitHub Desktop.
Save daniloab/04e45c7f4145ce185c7898a25e25892a to your computer and use it in GitHub Desktop.

alias list

  • co = checkout
  • st = status
  • cob = checkout -b
  • cim = commit -m
  • alias = ! git config --get-regexp ^alias. | sed -e s/^alias.// -e s/\ /\ =\ /
  • pom = pull origin master
  • poma = pull origin main

how to add it

git config --global alias.name "alias"

example: git config --global alias.co "checkout"

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