Skip to content

kspc1000/git-aliases

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

Git Aliases

A repository to note down the git aliases I use, and to expedite their configuration.

List

  • alias.alias config --get-regexp alias (Usage: git alias)
  • alias.ac !git add -A && git commit -m (Usage: git ac "commit message")
  • alias.ch checkout (Usage: git ch branch-name)
  • alias.br branch (Usage: git br)
  • alias.brv branch -v (Usage: git brv)
  • alias.ra remote add (Usage: git ra remote-name remote-link)
  • alias.rao remote add origin (Usage: git rao remote-link)
  • alias.track push -u (Usage: git track remote-name remote-branch-name)
  • alias.tracko push -u origin (Usage: git tracko remote-branch-name
  • alias.trackom* push -u origin master (Usage: git trackom)

*om: origin master

All in one command copy-paste:

git config --global alias.alias "config --get-regexp alias" && git config --global alias.ac "!git add -A && git commit -m" && git config --global alias.ch "checkout" && git config --global alias.br "branch" && git config --global alias.brv "branch -vv" && git config --global alias.ra "remote add" && git config --global alias.rao "remote add origin" && git config --global alias.track "push -u" && git config --global alias.tracko "push -u origin" && git config --global alias.trackom "push -u origin master"

Source

thumbnail

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published