概括
- Github Chocolatey Repository 已被分叉为拥有 Github 帐户 Chocolatey-1
installchocolateyservice
已创建一个新分支- installchocolateyservice 已被拉取
- 推送 installchocolateyservice 分支失败,但它可以推送到 master
git branch
表示只有master被识别
详细
在 Chocolatey Fork 中创建的额外分支
除了 master 拉的其他分支
C:\chocolatey-1>git pull origin installchocolateyservice
remote: Reusing existing pack: 4611, done.
remote: Counting objects: 25, done.
remote: Compressing objects: 100% (25/25), done.
rRemote: Total 4636 (delta 11), reused 0 (delta 0)eceiving objects: 100% (4636/4
Receiving objects: 100% (4636/4636), 21.86 MiB | 276.00 KiB/s, done.
Resolving deltas: 100% (2792/2792), done.
From github.com:030/chocolatey-1
* branch installchocolateyservice -> FETCH_HEAD
* [new branch] installchocolateyservice -> origin/installchocolateyservice
推送安装chocolateyservice 分支失败
C:\chocolatey-1>git push origin installchocolateyservice
error: src refspec installchocolateyservice does not match any.
error: failed to push some refs to 'git@github.com:030/chocolatey-1.git'
推送到大师作品
C:\chocolatey-1>git push origin master
Everything up-to-date
仅识别主分支
C:\chocolatey-1>git branch
* master
C:\chocolatey-1>