1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43
| $ git clone ssh://git@gitlab.jiagouyun.com:40022/zy-docs/pd-forethought-helps.git Cloning into 'pd-forethought-helps'... remote: Counting objects: 10236, done. remote: Compressing objects: 100% (77/77), done. remote: Total 10236 (delta 26), reused 0 (delta 0) Receiving objects: 100% (10236/10236), 67.68 MiB | 949.00 KiB/s, done. Resolving deltas: 100% (5016/5016), done.
$ git status On branch master Your branch is up-to-date with 'origin/master'. nothing to commit, working tree clean
#查看当前分支 $ git branch * master
#查看所有分支 $ git branch --all * master remotes/origin/HEAD -> origin/master remotes/origin/dashboard/MySQL锁监控 remotes/origin/dashboard/自建MariaDB监控
创建分支 git branch dashborad/自建MariaDB2监控
切换分支 git checkout dashborad/自建MariaDB2监控 # 当前分支所有提交完成,允许切换
上传本地到分支仓库 git push --set-upstream origin dashborad/自建MariaDB2监控
提交merge request 初学者选择web页面上处理 #命令方式待完善
删除分支 git branch -d 自建MariaDB2监控 # web页面上也点击清除
|