Sunday, January 21, 2018

Git aliases


================================
edit ~/.gitconfig as below:

[alias]
        fetch = fetch -v
co = checkout
================================

You can do the same using command line too: (which will in turn update ~/.gitconfig file)

# git config --global alias.co checkout

================================
You can list/verify same using the command

# git config --global -l
...
...
alias.fetch=fetch -v

alias.co=checkout
================================




No comments:

Post a Comment