This is an old revision of the document!


Proper definition and usage of Git aliases.

How to set a regular Git alias:

$ git alias cm commit
$ git alias co checkout
$ git alias b branch
$ git alias cb "checkout -b"

How to set a shell-style Git alias:

$ git alias bu "!git rev-parse --abbrev-ref --symbolic-full-name "@{u}""
  • git_aliases.1550411541.txt.gz
  • Last modified: 2019/02/17 13:52
  • by rpjday