How to create Git shortcut aliases?

Printer-friendly versionPDF version
Open the config file in the .git directory, in the project base directory and create an alias section and append aliases to it, one per line.

vi .git/config

[core]
      repositoryformatversion = 0
      filemode = true
      bare = false
      logallrefupdates = true
[alias]
      ci = commit
      st = status
      co = checkout
      b = branch
      l = log
      d = diff
      cmesg = log --pretty=format:"%s"

More information at: http://git.or.cz/gitwiki/Aliases

No votes yet