xgqfrms / git

git all in one
https://git.xgqfrms.xyz
MIT License
2 stars 1 forks source link

git config all in one #23

Open xgqfrms opened 4 years ago

xgqfrms commented 4 years ago

git config all in one

git global config

# git global config
$ git config

$ git config --list --show-origin

$ git config --global user.name "xgqfrms"
$ git config --global user.email xgqfrms@xgqfrms.xyz

# $ git config --global core.editor emacs
$ git config --global core.editor vscode

$ git config --global core.editor "'C:/Program Files/Notepad++/notepad++.exe' -multiInst -notabbar -nosession -noPlugin"

git local config

.git/config

# local config
$ git config --local -l
# edit
$ git config --local -e

$ cd .git
$ code .

$ git config user.name "your-user-name"
$ git config user.email "your-email-addr"

$ git config user.name "webgeeker"
$ git config user.email "webgeeker@webgeeker.xyz"