git常用命令

命令分别为:git config  --global user.name 需要更换用户名

                      git config  --global user.email 对应的邮箱名

      git config  --global user.password 对应密码

克隆命令:git clone 项目地址;

注:有时以上命令没有有问题还是拉不到项目,可以检查一下Windows用户凭证是否正确,用户名、密码要一致。

代码提交:1)commit  提交到本地

     2)push  再推到远程

更新项目:pull

Git提交记住用户名和密码:git config --global credential.helper store

posted @ 2021-09-27 10:33  张安东  阅读(20)  评论(0编辑  收藏  举报