git 操作手册仓 库的分支名称要保持一致)git用户名及仓库名称要根据实际情况修改,比如: # git remote add rmtRepo h�ps://gitlab.cof-lee.com/cof/pro-1.git # git push -uf rmtRepo main #将本地代码库的当前分支(main)推送到远 程的代码库的main分支 # git pull ★克隆远程仓库 # git clone h�ps://gitlab.cof-lee.com/cof/pro-1.git #克隆远程仓库到本地,默认 克隆的是远程的默认分支,本例中远程仓库默认分支为main(克隆后会自动在 当前目录下生成项目目录) # cd pro-1/ #进入克隆后的项目目录 # git remote #直接克隆的话,默认将远程仓库映射到本地,别 名为origin origin h�ps://gitlab.cof-lee.com/cof/pro-1.git (fetch) origin h�ps://gitlab.cof-lee.com/cof/pro-1.git (push) # git branch -a #查看所有分支 * main0 码力 | 35 页 | 1.69 MB | 1 年前3
The DevOps Handbookworkable state 4. Ch. 11 Enable and Practice Continuous Integration a. Branching – Pros & Cons i. Pro – Allows work in parallel while minimizing potential breaking impacts to trunk ii. Con – Branch work0 码力 | 8 页 | 23.08 KB | 6 月前3
共 2 条
- 1













