首页 > 其他 > 详细

git简单介绍

时间:2019-03-07 12:55:55      阅读:146      评论:0      收藏:0      [点我收藏+]

在D盘建文件夹命名Git,鼠标右键 点击  Git bash here ,打开 git bash 这个软件
1、git clone https://git.shuiditech.com/qa/cf-test-case.git   
2、git config --global user.name "xiaoqian"
3、git config --global user.email  xiaoqian@shuidihuzhu.com 
4、 git pull 
此时,本地文件夹里应该有git上的数据了
把 要上传的 文件 复制到 相应的目录下 
现在看看自己在哪个分支 ? xiao  或者 master
此时最好在 xiao 分支下
切换并创建本地xiao分支  git checkout -b xiao
5、git add .
6、git commit -m ‘命名一下‘
7、git branch --set-upstream-to=origin/dev dev  关联远端dev分支
8、git pull
9、git push
10、合并到 master
11、  git checkout master

12、git  pull

13、 git merge dev

14、 git push

去GitLab  检查检查,dev  和 master 都有自己的数据

git简单介绍

原文:https://www.cnblogs.com/buwnag/p/10488782.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!