git助我上云霄

github 创建分支 并在其他终端拉取

不难但是想记录下。下次可以直接过来看。
指令如下:

G:\atf\ATF> git branch postDev

G:\atf\ATF> git branch
* master
  postDev

G:\atf\ATF> git checkout branch
error: pathspec 'branch' did not match any file(s) known to git.

G:\atf\ATF> git checkout postDev
Switched to branch 'postDev'

G:\atf\ATF> git branch
  master
* postDev

G:\atf\ATF> git status
On branch postDev
nothing to commit, working tree clean

G:\atf\ATF> git push origin postDev
Counting objects: 373, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (373/373), done.
Writing objects: 100% (373/373), 557.49 KiB | 5.02 MiB/s, done.
Total 373 (delta 299), reused 0 (delta 0)
remote: Resolving deltas: 100% (299/299), completed with 46 local objects.
remote:
remote: Create a pull request for 'postDev' on GitHub by visiting:
remote:      https://github.com/buptAtf/ATF/pull/new/postDev
remote:
To https://github.com/buptAtf/ATF
 * [new branch]      postDev -> postDev

经过以上指令在远程仓库就创建了名字为postDev的分支。
然后就是在LRQ的电脑上拉取啦,具体操作如下:

PS H:\Code\ATF\前端\ATF> git fetch origin postDev
From https://github.com/buptAtf/ATF
 * branch            postDev    -> FETCH_HEAD
 * [new branch]      postDev    -> origin/postDev
PS H:\Code\ATF\前端\ATF> git branch
* master
PS H:\Code\ATF\前端\ATF> git checkout -b postDev origin/postDev
Switched to a new branch 'postDev'
G:\atf\ATF>git branch
  master
* postDev

完美

你可能感兴趣的:(git助我上云霄)