mac git命令缩写

在当前用户目录下创建.gitconfig文件

vim .gitconfig

内容格式如下:

[filter "hawser"]
    clean = git hawser clean %f
    smudge = git hawser smudge %f
    required = true
[filter "lfs"]
    clean = git-lfs clean %f
    smudge = git-lfs smudge %f
    required = true

[alias]
    co = checkout
    st = status
    ci = commit
    br = branch
    df = diff
    原文作者:asoren
    原文地址: https://segmentfault.com/a/1190000007960448
    本文转自网络文章,转载此文章仅为分享知识,如有侵权,请联系博主进行删除。
点赞