拉取项目分支过程
参考:https://blog.csdn.net/qq_3972...
文章图片
----------------对应的代码----------------
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag
$ git init
Initialized empty Git repository in C:/Users/qzxl/Desktop/userManag/.git/
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (master)
$ git remote add origin git@192.168.1.101:campus/frontend.git
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (master)
$ git branch
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (master)
$ git fetch origin dev
fatal: couldn't find remote ref dev
fatal: the remote end hung up unexpectedly
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (master)
$ ^C
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (master)
$ git fetch origin jiangningOA
remote: Enumerating objects: 642, done.
remote: Counting objects: 100% (642/642), done.
remote: Compressing objects: 100% (64/64), done.
Receivremote: Total 2483 (delta 610), reused 578 (delta 578), pack-reused 1841
Receiving objects: 100% (2483/2483), 1.06 MiB | 23.11 MiB/s, done.
Resolving deltas: 100% (1424/1424), done.
From 192.168.1.101:campus/frontend
- branch jiangningOA -> FETCH_HEAD
- [new branch] jiangningOA -> origin/jiangningOA
$ git checkout -b jiangningOA origin/jiangningOA
Switched to a new branch 'jiangningOA'
Branch 'jiangningOA' set up to track remote branch 'jiangningOA' from 'origin'.
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (jiangningOA)
$ git pull origin jiangningOA
From 192.168.1.101:campus/frontend
- branch jiangningOA -> FETCH_HEAD
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (jiangningOA)
$ ^C
【拉取项目分支过程】qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (jiangningOA)
$
推荐阅读
- 17|17 关山松 第二课作业#公众号项目# D20
- RxJava|RxJava 在Android项目中的使用(一)
- Hacking|Hacking with iOS: SwiftUI Edition - SnowSeeker 项目(一)
- 靠QQ月入上万灰色暴利偏门的项目
- spring|spring boot项目启动websocket
- vuex|vuex 基础结构
- 区块链开发平台(以太坊)
- 如何在手机上查看测试vue-cli构建的项目
- django2.2|django2.2 一般项目步骤(初步)
- 项目团队管理|项目团队管理 - 塔克曼阶梯理论