Oh-My-Zsh的配置主要集中在~/.zshrc里,用 vim 或你喜欢的其他编辑器打开.zshrc。
alias cls='clear'
alias ll='ls -l'
alias la='ls -a'
alias vi='vim'
最后 source ~/.zshrc
针对git的快捷键
g - git
gst - git status
gl - git pull
gup - git pull --rebase
gp - git push
gd - git diff
gdc - git diff --cached
gdv - git diff -w "$@" | view
gc - git commit -v
gc! - git commit -v --amend
gca - git commit -v -a
gca! - git commit -v -a --amend
gcmsg - git commit -m
gco - git checkout
gcm - git checkout master
gr - git remote
grv - git remote -v
grmv - git remote rename
grrm - git remote remove
gsetr - git remote set-url
grup - git remote update
grbi - git rebase -i
grbc - git rebase --continue
grba - git rebase --abort
gb - git branch
gba - git branch -a
gcount - git shortlog -sn
gcl - git config --list
gcp - git cherry-pick
glg -

最低0.47元/天 解锁文章
1806

被折叠的 条评论
为什么被折叠?



