本地代码上传到GitHub---拷贝github代码

  1. 本地新的项目上传至git库: 我的地址:https://www.cnblogs.com/duende99/p/15025875.html
    别人的地址:https://www.cnblogs.com/eedc/p/6168430.html, 得先在Git库中创建一个版本库

来这里:
转载请标明出处:
http://blog.csdn.net/hanhailong726188/article/details/46738929

步骤:
git init
git add .
git commit -m "解释"
git remote add origin https://.....(copy)
git push -u origin master

注意:如果有报以下错误,出现错误的主要原因是github中的README.md文件不在本地代码目录中,或者README.md有冲突啥的,想办法解决即可
错误:Updates were rejected because the tip of your current branch is behind

拷贝 GitHub代码
1. 在 git base here 这里 : git clone git@github.com:duende99/second.git
2. 或者直接download zip压缩包。

原文地址:https://www.cnblogs.com/duende99/p/7581933.html