1. Git上传代码到Coding,下载代码到本地步骤
上传项目到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(分支名) 下载代码到本地
转自:http://blog.youkuaiyun.com/qq_23477421/article/details/70245649
2、Can't update: no tracked branch
转自:http://blog.youkuaiyun.com/rodulf/article/details/51536532
3、更换分支命令
git checkout -f another-branch