7 ms·
Another tip is adding all this to .gitconfig: [alias] b = branch co = checkout ci = commit st = status -sb diff = diff --word-diff l
by dongsheng 15y ago
Another tip is adding all this to .gitconfig:
[alias]
b = branch
co = checkout
ci = commit
st = status -sb
diff = diff --word-diff
l = log --graph --pretty=oneline --abbrev-commit --decorate
- snprbob86 15y agoI use these: [alias] l = log --oneline --decorate --graph co = checkout ci = commit man = help h = help a = add f = fetch d = diff dc = diff --cached dt = difftool dtc = difftool --cached ds = diff --stat dsc = diff --stat --cached s = status --short --branch b = branch
- brunoqc 15y agoI like : lg = log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative from http://www.jukie.net/bart/blog/pimping-out-git-log http://www.jukie.net/bart/blog/pimping-out-git-log
- eswat 15y agoI’ve added my aliases to my bashrc instead. alias git="hub" alias ga="git add -A" alias gap="git add -Ap" alias gc="git commit -m" alias gs="git status -sb" alias gd="git difftool" alias gb="git branch" alias gco="git checkout" alias gm="git merge --no-ff" alias gp="git push" alias gpl="git pull" alias gf="git fetch" alias gcl="git clone" alias gr="git reset" alias gl="git log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative" alias gre='git remote -v'