草庐IT

push_front

全部标签

git push : refs/heads/my/subbranch exists, 无法创建

这不可能在服务器上的repo中创建somme子子文件夹吗?如果我这样做:gitpushorigindev/master一切正常但如果我这样做gitpushorigindev/sub/master我明白了:error:'refs/heads/dev/sub'exists;cannotcreate'refs/heads/dev/sub/master'我用gitbranch-r检查并直接用ssh,没有创建dev/sub文件夹。怎么了? 最佳答案 它不是一个存在的文件夹,它是一个分支。(好吧,某处可能涉及文件夹/目录,也可能不涉及,因为引用

git push : refs/heads/my/subbranch exists, 无法创建

这不可能在服务器上的repo中创建somme子子文件夹吗?如果我这样做:gitpushorigindev/master一切正常但如果我这样做gitpushorigindev/sub/master我明白了:error:'refs/heads/dev/sub'exists;cannotcreate'refs/heads/dev/sub/master'我用gitbranch-r检查并直接用ssh,没有创建dev/sub文件夹。怎么了? 最佳答案 它不是一个存在的文件夹,它是一个分支。(好吧,某处可能涉及文件夹/目录,也可能不涉及,因为引用

git - 什么是 `git push origin master` ?帮助 git 的 refs、heads 和 remotes

我有一个关于gitpushoriginmaster做什么的问题:我知道origin是远程(又名GitHub)gitpushoriginmaster等同于gitpushoriginmaster_on_my_machine:master_on_github我不知道是否:master_on_my_machine等于/refs/heads/mastermaster_of_github等于/refs/remotes/origin/master如果相等,是否可以做gitpushoriginrefs/heads/master:refs/heads/origin/master?最后,我只想在以下情况下

git - 什么是 `git push origin master` ?帮助 git 的 refs、heads 和 remotes

我有一个关于gitpushoriginmaster做什么的问题:我知道origin是远程(又名GitHub)gitpushoriginmaster等同于gitpushoriginmaster_on_my_machine:master_on_github我不知道是否:master_on_my_machine等于/refs/heads/mastermaster_of_github等于/refs/remotes/origin/master如果相等,是否可以做gitpushoriginrefs/heads/master:refs/heads/origin/master?最后,我只想在以下情况下

ruby-on-rails - 带有 git remote 的 Gem 文件在 heroku push 上失败

我的gemfile中有以下行:gem'client_side_validations',:git=>"git@github.com:Dakuan/client_side_validations.git",:branch=>"master",ref:'2245b4174ffd4b400d999cb5a2b6dccc0289eb67'它指向的存储库是公开的,我可以在本地运行bundleinstall/update就好了。当我尝试推送到Heroku时,出现以下错误:Fetchinggit@github.com:Dakuan/client_side_validations.gitHostkey

ruby-on-rails - 带有 git remote 的 Gem 文件在 heroku push 上失败

我的gemfile中有以下行:gem'client_side_validations',:git=>"git@github.com:Dakuan/client_side_validations.git",:branch=>"master",ref:'2245b4174ffd4b400d999cb5a2b6dccc0289eb67'它指向的存储库是公开的,我可以在本地运行bundleinstall/update就好了。当我尝试推送到Heroku时,出现以下错误:Fetchinggit@github.com:Dakuan/client_side_validations.gitHostkey

git - 推送大型 github 存储库失败并显示 "unable to push to unqualified destination: master"

我有一个很大的git存储库(从SVN存储库创建),我想将它推送到github。鉴于它很大,我不能直接尝试推送它,因为它会因“打包太大”错误而失败。到目前为止一切都很好,我可以一次推送一个提交的repo协议(protocol)。但是当我尝试这样做时,发生的事情是:gitpushorigin86c310d8a680d6d0e052fa7db89adb25348f3e54:mastererror:unabletopushtounqualifieddestination:masterThedestinationrefspecneithermatchesanexistingrefontherem

git - 推送大型 github 存储库失败并显示 "unable to push to unqualified destination: master"

我有一个很大的git存储库(从SVN存储库创建),我想将它推送到github。鉴于它很大,我不能直接尝试推送它,因为它会因“打包太大”错误而失败。到目前为止一切都很好,我可以一次推送一个提交的repo协议(protocol)。但是当我尝试这样做时,发生的事情是:gitpushorigin86c310d8a680d6d0e052fa7db89adb25348f3e54:mastererror:unabletopushtounqualifieddestination:masterThedestinationrefspecneithermatchesanexistingrefontherem

git - git pull 和 git push 的不同默认远程(跟踪分支)

有没有一种方法可以设置git存储库,使gitpull默认为一个远程服务器,而gitpush默认为另一个远程服务器?我知道我可以通过更改.git/config的分支部分中的remote变量的值来设置both,但是如何为每个方向分别? 最佳答案 从Git版本1.7.0开始,您可以通过以下方式进行设置:gitremoteset-url--pushoriginhttps://your.push.com/blah/ 关于git-gitpull和gitpush的不同默认远程(跟踪分支),我们在Sta

git - git pull 和 git push 的不同默认远程(跟踪分支)

有没有一种方法可以设置git存储库,使gitpull默认为一个远程服务器,而gitpush默认为另一个远程服务器?我知道我可以通过更改.git/config的分支部分中的remote变量的值来设置both,但是如何为每个方向分别? 最佳答案 从Git版本1.7.0开始,您可以通过以下方式进行设置:gitremoteset-url--pushoriginhttps://your.push.com/blah/ 关于git-gitpull和gitpush的不同默认远程(跟踪分支),我们在Sta