实现账号切换:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
注意:真正代表账号的是email,后面的user.name只是客户端显示的提交者名称(就相当于昵称而已),可以随意定,而账号由email确定后不变。
commit:
git commit -m "注释语句"
push:
git push
实现账号切换:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
注意:真正代表账号的是email,后面的user.name只是客户端显示的提交者名称(就相当于昵称而已),可以随意定,而账号由email确定后不变。
commit:
git commit -m "注释语句"
push:
git push