1.自己在gitlab.XXX.com创建一个项目

点击右上角的“+”符号,创建新项目。

项目名:xxxtest

2.在master分支提交一个文件Readme.txt

文件内容:

Date: 2016-07-xx

Author: xxxx@XXX.com

说明: homework

git clone ssh://XXX

git add Readme.txt

git commit -m 'add readme.txt'

#此处master为分支名

git push origin master

3.新建分支testing,并推送到gitlab

git branch testing

git checkout testing

#此处testing为分支名

git push origin testing

删除分支操作方式如下:

#新建origin分支

git branch origin

#删除origin分支

git branch -d origin

4.在testing提交文件夹“dir”, 文件夹里须有文件“file1”

mkdir dir

cd dir

touch file1

cd ..

git add ./dir

git commit -m 'add dir'

git push origin testing

5.将testing分支merge到master分支

git checkout master

git merge testing

git commit -m 'merge testing'

git push origin master

最新文章

  1. 搭建 AngularJS+Ionic+Cordova 开发环境并运行一个demo
  2. [Linux]cmd to use
  3. 策略模式(strategy pattern)
  4. 【C语言】C语言标识符
  5. javascript工厂模式
  6. HDU 5701 中位数计数
  7. Gray码 (格雷码) 【二进制】
  8. SQL Server 备份的 8 种方法。
  9. hibernate子查询
  10. <当幸福来敲门>之一些很喜欢的台词收藏
  11. JavaScript简易计算器
  12. c#事件的应用
  13. 章节十一、1-Junit介绍
  14. nsx-edge虚拟机抓包实践
  15. (转)java代码发送JSON格式的httpPOST请求
  16. UnicodeEncodeError: 'utf-8' codec can't encode character '\udce4' in position 1: surrogates not allowed根本解决方法
  17. Mosaic 前端微服务框架
  18. 使用IDEA创建Java Web项目并部署
  19. ERROR: In <declare-styleable> MenuView, unable to find attribute android:preserveIconSpacing
  20. Android基础(五) Service全解析----看不见的Activity

热门文章

  1. Git:创建远程仓库并推送内容到远程库
  2. Scheduler & Task & Worker & Thread & Request & Session & Connection of SQL Server
  3. [LeetCode] 231. Power of Two ☆(是否2 的幂)
  4. vue 父组件通过props向子组件传递数据/方法的方式
  5. adb(Android Debug Bridge)安装使用教程
  6. [转]perftools查看堆外内存并解决hbase内存溢出
  7. Spring AOP+Log4j记录项目日志
  8. Spring整合Hystrix
  9. 使用javassist进行动态编程
  10. JAVA常识1