Quantcast
Channel: git - Entreprehero
Viewing all articles
Browse latest Browse all 7

How to set aliases in git

$
0
0

Aliases are lovely since you don’t have to write so many characters 🙂 It’s easy to set up your own. Just go to your home catalog and edit your .gitconfig file

nano ~/.gitconfig

Here’s mine:

[alias]
        co = checkout
        lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %Cblue<%an$
        cp = cherry-pick
        c = commit -am
        dc = diff --cached
        last = log -1 --stat
        ps = push origin master
        pl = pull origin master

Viewing all articles
Browse latest Browse all 7

Latest Images

Trending Articles





Latest Images