git常用命令行

来源:互联网 发布:fc存储网络 编辑:程序博客网 时间:2024/05/22 00:06

实现账号切换:

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