Git 执行 pull 时跳过填写 merge message

主要是执行 git pull 命令时即使无冲突也进 merge 信息填写比较麻烦,可以通过修改全局配置进行跳过:

修改 user.dir 目录下的 .gitconfig 配置文件全局跳过

[pull]
    rebase = true
[core]
    mergeoptions = --no-edit

顺便其它有用设置

[filter "lfs"]
    clean = git-lfs clean -- %f
    smudge = git-lfs smudge -- %f
    process = git-lfs filter-process
    required = true
[core]
    longpaths = true
    packedGitLimit = 512m 
    packedGitWindowSize = 512m
    mergeoptions = --no-edit
[pull]
    rebase = true
[pack] 
    deltaCacheSize = 2047m 
    packSizeLimit = 2047m 
    windowMemory = 2047m
[http]
    version = HTTP/1.1
[credential "https://huggingface.co"]
    provider = generic

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注