設置git命令使用的簡寫、縮寫

 設置git命令使用的簡寫、縮寫 

vim ~/.gitconfig 輸入如下文件內容即可:


 [user]
         email = [email protected]
         name = songam
 [filter "lfs"]
         clean = git-lfs clean -- %f
         smudge = git-lfs smudge -- %f
         process = git-lfs filter-process
         required = true
 
 [merge]
     summary = true
     tool = vimdiff
 [diff]
     renames = copy
 [color]
     diff = auto
     status = true
     branch = auto
     interactive = auto
     ui = auto
     log = true
 [status]
     submodulesummary = -1
 [mergetool "vimdiff"]
     cmd = "vim --noplugin \"$PWD/$MERGED\" \
           +\":split $PWD/$REMOTE\" +\":set buftype=nowrite\" \
           +\":vertical diffsplit $PWD/$LOCAL\" +\":set buftype=nowrite\" \
           +\":vertical diffsplit $PWD/$BASE\" +\":set buftype=nowrite\" \
           +\":wincmd l\""
 [format]
     numbered = auto
 [alias]
     co = checkout
     ci = commit
     st = status
     pl = pull
     ps = push
     dt = difftool
     l = log --stat
     cp = cherry-pick
     ca = commit -a
     b = branch

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章