Stan Blog

學習過程中的一些記錄

[Zsh] oh my zsh 內建 git alias 常用指令

~/.oh-my-zsh/plugins/git/git.plugin.zsh 內可以看到所有預設指令

以下僅列出個人常用指令

gd = git diff

gst = git status

gaa = git add .

gcmsg = git commit -m

glol = git log --graph

查看分支

gb = git branch

gbr = git branch --remote

CheckOut

gco = git checkout

gcm = git checkout master

gcd = git checkout develop

Pull & Push

gl = git pull

gp = git push

ggpull = git pull origin $(git_current_branch)

ggpush = git push origin $(git_current_branch)

Merge

gm = git merge

gmom = git merge origin/master

Comments

comments powered by Disqus