vs code 上传代码到码云

git init     //初始化git仓库

git add .   //添加所有文件到git暂存区

git add README.md(如果项目中没有这个文件,会在后面几个操作中报错,解决方法是通过命令合并:git pull --rebase origin master)

git commit -m "first commit"    //提交文件到本地仓库

git remote add origin  https://www.yourgiturlxxxx.git  //绑定远程仓库(你自己的仓库http地址)

git push -u origin master //提交代码到远程仓库

参考链接:

https://www.cnblogs.com/xiaoquan-blog/p/12950472.html

https://www.jianshu.com/p/8cd8491a611d

https://gitee.com/help/articles/4122 

不考虑业务场景,一味的争执技术的高下,都是耍流氓。
原文地址:https://www.cnblogs.com/leoych/p/13895932.html