git_sd
(一)将代码从服务器移到gitlab
nano .gitignore
ll -ah
1.关联一个远程库 : git remote add origin http://hcgit.hengchang6.com/qiaoruihua181224/GEM.git
2.添加内容:git add .
3.添加评论:git commit -m "sd last checkpoint"
4. 推送master分支的所有内容: git push -u origin master
(二)将代码从master分支移到其他分支
1. 创建分支 git branch qiaoruihua
2. 切换分支 git check out qiaoruihua
3. git add .
4. git commit -m "qiao test"
5. git push --set-upstream origin qiaoruihua
git push -u origin qiaoruihua
posted on 2019-07-09 11:36 happygril3 阅读(126) 评论(0) 收藏 举报
浙公网安备 33010602011771号