Git command aliasing
substituting keywords for other words
Last updated
substituting keywords for other words
Last updated
Instead of typing out a command line git status
entirely, we can configure our command line so that we can just type git s
(or git whatever
):
The Git manual recommends other aliases:
This answer to a Stack Overflow question combines git add
and git commit
into one git add-commit
:
Combining the above two, we can do something like:
Thus, we can generalize the format as:
Short for git push origin master
(push to the cloud!)
Short for git checkout -b {branch-name}
(check into a new branch)
Enjoy!