(三)ubuntu终端第一次提交git

1、步骤:

  1. git config --global user.email “邮件地址”
  2. git config --global user.name “名字”
  3. git add .
  4. git commit -m “改动说明”
  5. git push

2、命令说明:

  1. step1和step2的’–global‘如果省略,那么下次在新仓库(第一次)提交代码时,还需要执行step1和step2。(建议使用’–global’,使“邮寄地址”和“名字”为所有仓库公有)。
  2. 同一个仓库(非第一次)提交的时候,只需要step3-step5。
  3. step3:添加所有改动
  4. step4:提交
  5. step5:推到主分支

3、第一次提交示意图

(三)ubuntu终端第一次提交git_第1张图片

你可能感兴趣的:(系统,软件,工具)