最終更新:2023-09-22 (金) 14:33:58 (216d)  

git config
Top / git config

Get and set repository or global options

https://git-scm.com/docs/git-config

確認

保存先

  • --globalLinux/~/.gitconfig?C:\Users\ユーザ名\.gitconfig
    --systemLinux/etc/gitconfig?C:\ProgramData\Git\configとC:\Program Files\Git\mingw64\etc\gitconfig
    ローカル.git/config

git config credential

設定

  • git config --global user.email "user@vm"
    git config --global user.name "user"
  • core.editor
    merge.tool
  • core.repositoryformatversion=0
    core.filemode=true
    core.bare=false
    core.logallrefupdates=true
    core.ignorecase=true
    core.precomposeunicode=true
    remote.origin.url=git://github.com/hoge/hoge.git
    remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
    branch.master.remote=origin
    branch.master.merge=refs/heads/master