直接通过vim 命令进入到配置文件中进行修改
vim ~/.gitconfig
修改下面的name的属性值和email的属性值即可
# This is Git's per-user configuration file.
[user]
# Please adapt and uncomment the following lines:
name = ligh
email = [email protected]
按esc退出,然后shift+:输入wq即可。