首页 > 其他 > 详细

git拉取 提交代码(初级小白篇)

时间:2020-05-06 10:05:12      阅读:64      评论:0      收藏:0      [点我收藏+]

获取  

 

 

 

 

 

 

提交 (完整字符之间空格)

1.提交全部文件 (小白操作就全部推上去吧,没什么影响)

  git add . 

2.执行commit提交

  git commit -m "提交描述" 

(第一次commit 的时候可能会没有检测出提交人的信息,出现下面情况

*** Please tell me who you are.

Run

git config --global user.email "you@example.com"  /** 复制此行在引号内填写邮箱*/
git config --global user.name "Your Name"  /**完成上步操作再复制此行填写姓名可随便填*/

to set your account‘s default identity.
Omit --global to set the identity only in this repository.

fatal: unable to auto-detect email address (got ‘邮箱@LAPTOP-414M58UN.(none)‘) 

3.合并远程分支代码

  git pull 远程分支名 (获取到远程分支并与本地合并更新) 

4.执行push推送代码

  git push 本地分支名:远程分支名(将本地代码push到git本地仓)

5.看到100%可以了

 

git拉取 提交代码(初级小白篇)

原文:https://www.cnblogs.com/beidouwangyue/p/12834445.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!