git set commit history user.name and user.email
reset git history user
1 | git filter-branch -f --env-filter " |
set globle user profile
1 | git config --globle user.name "oceanpad" |
set local user profile
under this directory’s set file1
2git config --globle user.name "oceanpad"
git config --globle user.email "zhy20090912@gmail.com"
global set file
user’s home dir’s .gitconfig file
open: “vi /home/user/.gitconfig”
or: “vi ~/.gitconfig”
local set file
git folder’s local set file is location at .git
folder’s config file
open: “vi .git/config”
config file looks like:
1 | [user] |
- All is setting by yourself, You can use command up, or you can config this file directly.