为什么我在下面提到了推送到不合格目的地的错误?
$ git flow release start v1.03
Switched to a new branch 'release/v1.03'
(接下来是一堆其他正常的东西。)
然后:
git flow release finish -Fp v1.03
Switched to branch 'master'
Merge made by the 'recursive' strategy.
.gitignore | 1 +
1 file changed, 1 insertion(+)
Deleted branch release/v1.03 (was c08e706).
Everything up-to-date
Counting objects: 1, done.
Writing objects: 100% (1/1), 228 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
To git@github.com:petertheyeti/myprivaterepo.git
e0ef1dd..29a2667 master -> master
Counting objects: 1, done.
Writing objects: 100% (1/1), 159 bytes, done.
Total 1 (delta 0), reused 0 (delta 0)
To git@github.com:petertheyeti/myprivaterepo.git
* [new tag] v1.03 -> v1.03
然后是错误:
error: unable to push to unqualified destination: release/v1.03
The destination refspec neither matches an existing ref on the remote nor
begins with refs/, and we are unable to guess a prefix based on the source ref.
error: failed to push some refs to 'git@github.com:petertheyeti/myprivaterepo.git'
Could not delete the remote release/v1.03 in origin.
在查看github时,一切似乎都很完美......也就是说,master拥有新的位。但为什么会出现这个错误呢?
任何线索?
答案 0 :(得分:1)
我假设您使用的是gitflow的nvie版本。
当您执行推送(-p)时,软件会尝试删除遥控器上的发布分支。看来你没有发布分支,所以它失败了。这是软件中的一个错误。