信息安全从业人员^_^
一个未入门de情报学胖子(邮箱:tenghm1986@163.com)
Toggle navigation
信息安全从业人员^_^
主页
About Me
归档
标签
git tips
2018-05-25 10:31:55
414
0
0
heming
# 1.clone远程代码 ``` git clone git@192.168.10.99:FLKDBEnc/FLKCDP.git ``` # 2.查看当前分支 ``` git branch -a ``` <center> ![查看当前分支](https://leanote.com/api/file/getImage?fileId=5b0773bdab64410f4e000608) </center> # 3.切换当前分支(远程分支) ``` git checkout -b chenming origin/chenming ``` <center> ![切换分支](https://leanote.com/api/file/getImage?fileId=5b0773bdab64410f4e000609) </center> # 4.(在当前本地分支上)建立新分支 ``` git branch heming git checkout heming ``` <center> ![建立新分支](https://leanote.com/api/file/getImage?fileId=5b077366ab64410d5e000681) </center> <center> ![](https://leanote.com/api/file/getImage?fileId=5b077521ab64410f4e000638) </center> # 5.将在本地建立的分支上传到远程 ``` git push origin heming ``` <center> ![上传到远程分支](https://leanote.com/api/file/getImage?fileId=5b077366ab64410d5e000683) </center> # 6.合并远程分支代码 ``` git pull git merge origin/master ``` <center> ![git-pull](https://leanote.com/api/file/getImage?fileId=5b077521ab64410f4e000639) </center> <center> ![合并远程分支代码](https://leanote.com/api/file/getImage?fileId=5b077366ab64410d5e000682) </center> # 7.上传修改后的代码到远程分支 ``` git push origin heming ``` # 8.gitlab server 上申请merge到master分支 <center> ![merger request](https://leanote.com/api/file/getImage?fileId=5b07723fab64410f4e00059f) </center>
上一篇:
[talos]春的长尾巴游 之做菜_20180528
下一篇:
SGX实践
0
赞
414 人读过
新浪微博
微信
腾讯微博
QQ空间
人人网
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus
文档导航