- 用 Sublime Text 2 打開編輯
~/.gitconfig
,終端機執行指令subl ~/.gitconfig
- 將內容修改成如下,主要針對
user
與alias
做修改
[user]
name = OA Wu
email = [email protected]
[alias]
st = status
co = checkout
rb = rebase
cp = cherry-pick
ci = commit
ss = stash
cn = clean
pu = push origin
ps = push origin
sl = shortlog -s -n
- 終端機執行指令
git config --global core.editor "subl -n -w"