共计 1432 个字符,预计需要花费 4 分钟才能阅读完成。
参考: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
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (master)
$ 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
Already up to date.
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (jiangningOA)
$ ^C
qzxl@qzxl-08 MINGW64 ~/Desktop/userManag (jiangningOA)
$