美文网首页
本地提交到码云

本地提交到码云

作者: jack_520 | 来源:发表于2017-11-23 00:30 被阅读0次

1在github上git clone一个项目,在里面创建一个目录,然后git push的时候,出现报错"Everything up-to-date"

原因:

1)没有git add .

2)没有git commit -m "提交信息”

使用 git push -u origin master 上传文件到码云

ps:

push 之前,最好要 pull 一次;

init 之后,记得要进行一次 add 和 commit 操作;

----------分割线

提交步骤:1 打开cmd -----2cd到项目下 ----3 git push 命令--4 git add .  5git commit -m "提交代码的注释" ----6git push -u origin master ---7输入账号 godlovejack ---8输入密码 zxcvbn123456789

2.简单提交方法    git  add . git commit -m ""   也能提交成功。

相关文章

网友评论

      本文标题:本地提交到码云

      本文链接:https://www.haomeiwen.com/subject/lusavxtx.html