暗黑模式
配置
教程Git
Config file location
- /etc/gitconfig
git config --system
- ~/.gitconfig or ~/.config/git/config
git config --global
- PROJECT/.git/config
git config --local
--local
is the default option
Show configs
show config list
bash
git config --list --show-origin
file:/home/ronnie/.gitconfig user.email=mjyok12345@gmail.com
file:/home/ronnie/.gitconfig user.name=jinyuan ming
file:/home/ronnie/.gitconfig credential.helper=store
file:.git/config core.repositoryformatversion=0
file:.git/config core.filemode=true
file:.git/config core.bare=false
file:.git/config core.logallrefupdates=true
file:.git/config remote.origin.url=https://e.coding.net/ensightech2019/fourzeroeight/408factory.git
file:.git/config remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*
file:.git/config branch.master.remote=origin
file:.git/config branch.master.merge=refs/heads/master
file:.git/config sendpack.sideband=false
file:.git/config remote.github.url=https://github.com/scjmjy/showcase-408factory.git
file:.git/config remote.github.fetch=+refs/heads/*:refs/remotes/github/*
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
show one config
bash
git config user.name
jinyuan ming
git config --show-origin remote.origin.url
file:.git/config https://e.coding.net/ensightech2019/fourzeroeight/408factory.git
1
2
3
4
5
2
3
4
5
Set configs
bash
git config --global user.name "John Doe"
git config --global user.email johndoe@example.com
git config --global core.editor vim
1
2
3
2
3