一、上传项目到Coding
1、在coding上面创建一个项目helloword,记录项目git地址
2、cmd到项目的根目录,使用git init创建.git文件夹和.gitigonre文件
3、使用git pull <项目地址>同步项目上面的文件
4、git add * 添加项目下面的所有文件
5、 git commit -m ‘备注’ 将文件添加在cache中并添加备注
6、git remote add <仓库名> ssh地址
7、git push -u helloword(仓库名) master (分支名) ——推送到coding.net
二、下载项目到本地
1、新建项目文件夹helloword
2、cd hellword 进入项目文件夹
3、git init 初始化仓库
4、git remote add helloword <项目地址> 添加关联
5、git pull hellowrd(仓库名) master(分支名) 下载代码到本地
---------------------
作者:林朝昆
来源:CSDN
原文:https://blog.csdn.net/qq_23477421/article/details/70245649
版权声明:本文为博主原创文章,转载请附上博文链接!