• 请不要在回答技术问题时复制粘贴 AI 生成的内容
webjin
V2EX  ›  程序员

用 git 的小伙伴们,你们一般 git 的全局配置是配哪些属性和参数呢?

  •  
  •   webjin · Oct 10, 2014 · 3679 views
    This topic created in 4320 days ago, the information mentioned may be changed or developed.
    比如
    git config --global user.name v2ex
    git config --global user.email [email protected]
    ....
    ....
    哪些好用实用经典的,可以贴出来吗?
    5 replies    2014-10-11 10:01:24 +08:00
    billlee
        1
    billlee  
       Oct 10, 2014
    core.quotepath=off
    color.ui=auto
    bengol
        2
    bengol  
       Oct 10, 2014
    我的:
    [core]
    editor = vim
    deltaBaseCacheLimit = 1G
    [color]
    ui = true
    [alias]
    br = branch
    st = status
    df = difftool
    [diff]
    tool = kdiff3
    [difftool "kdiff3"]
    path = /usr/local/bin/kdiff3
    trustExitCode = false
    keepBackup = false
    [difftool]
    prompt = false
    [merge]
    tool = kdiff3
    [mergetool "kdiff3"]
    path = /usr/local/bin/kdiff3
    trustExitCode = false
    keepBackup = false
    [mergetool]
    prompt = false
    ceyes
        4
    ceyes  
       Oct 11, 2014
    我的 git全局配置主要是:颜色,一些alias 和 自动rebase。

    不在里面写 user 信息,一般不同 repo 用不同的账户,所以单独配置,免得搞混。

    https://gist.github.com/ceyes/3fdb02f78d0a4602ff53
    stormslowly
        5
    stormslowly  
       Oct 11, 2014
    ```
    [credential]
    helper = store
    ```

    自己用的这个 觉得这个不错
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2648 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 15:27 · PVG 23:27 · LAX 08:27 · JFK 11:27
    ♥ Do have faith in what you're doing.