xgqfrms / git

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

.gitconfig file location #20

Open xgqfrms opened 4 years ago

xgqfrms commented 4 years ago

.gitconfig file location

vim & vscode

global config

# global config
$ cd ~/.gitconfig

$ vim ~/.gitconfig
$ code ~/.gitconfig

local config

# local config
$ cd .git/config

$ vim .git/config
$ code .git/config

https://www.cnblogs.com/xgqfrms/p/12225759.html

xgqfrms commented 4 years ago

git config file location

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

$ git config  --global user.name "xgqfrms"
$ git config  --global user.email "xgqfrms@outlook.com"
$ git config  user.name "your-user-name"
$ git config  user.email "your-email-addr"

$ git config user.name "guangqian.xia"
$ git config user.email "guangqian.xia@ipiaoniu.com"

https://github.com/xgqfrms/git/issues/17

~/.gitconfig

# global config
$ git config --global -l 

.git/config

# local config
$ git config -l
xgqfrms commented 4 years ago

https://git-scm.com/docs/git-config https://www.atlassian.com/git/tutorials/setting-up-a-repository/git-config

xgqfrms commented 4 years ago

https://stackoverflow.com/a/60312214/5934465

xgqfrms commented 3 years ago

Vim Cheat Sheet

https://vim.rtorr.com/lang/zh_cn/

移动光标 h - 左移光标 j - 下移光标 k - 上移光标 l - 右移光标 H - 移动到当前页面顶部 M - 移动到当前页面中间 L - 移动到当前页面底部