致命的:refspec的远程部分在以下方面不是有效的名称:capabilities ^ {} [英] fatal: remote part of refspec is not a valid name in :capabilities^{}

查看:489
本文介绍了致命的:refspec的远程部分在以下方面不是有效的名称:capabilities ^ {}的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从github克隆给定的回购库,然后在bitbucket上推入新的回购库,并且出现错误:

 > ; fatal:refspec的远程部分不是有效的名称:capabilities ^ {} 
>致命的:远程终端意外挂断

错误的含义是什么 - 它是什么造成的(I' m $仍然是新的git)。

以下是日志:

  - 从github克隆:
$ git clone git://github.com/ASKBOT/askbot-devel.git test2
$ cd test2

- 创建一个私人git回购bitbucket:网站上的
图形用户界面

- 添加远程用户:
$ git remote add bbtest2 https://shishani@bitbucket.org/shishani/test2.git

$ git remote -v
bbtest2 https://shishani@bitbucket.org/shishani/test2.git(fetch)
bbtest2 https://shishani@bitbucket.org/shishani/test2 .git(push)
origin git://github.com/ASKBOT/askbot-devel.git(fetch)
origin git://github.com/ASKBOT/askbot-devel.git(push )

$ git branch -a
* master
遥控器/ origin / HEAD - >起源/大师
遥控器/原产地/管理界面
遥控器/原产地/管理员区域
遥控器/原产地/ adolfo-postman
遥控器/原产地/允许其他登录应用程序
遥控器/原产地/ anon-posting
遥控器/原产地/ askbot-站点
遥控器/原产地/自动媒体修订版
遥控器/原产地/头像 - 边栏
遥控器/ origin / beta2-english-chinese
遥控器/原产地/更好设置
遥控器/原产地/封锁
遥控器/原产地/ bug102
遥控器/原产地/错误修正件
遥控/原产地/缓存实验
遥控器/原产地/类别
遥控器/原产地/ cnprog-进口
遥控器/原产地/常见问题视图
遥控器/原产地/开发
遥控器/原产地/ django-注册
遥控器/原产地/弹性皮肤
遥控器/原产地/实验性
遥控器/原产地/实验合并器
遥控器/原产地/ fabian
遥控器/原产地/ fbconnect
遥控器/原产地/特征73
遥控器/原产地/追随者
遥控器/原产地/全球网页
遥控器/原产地in / inbox-and-flagged-items
遥控器/ origin / issue116
遥控器/ origin / jinja
遥控器/ origin / master
遥控器/ origin / multi-auth-app
遥控器/原产地/新模板
遥控器/原产地/ newauth
遥控器/原产地/仅密码
遥控器/原产地/ postgres全文
遥控器/原产地/ pt-i18n
遥控器/ origin / refs / heads / skins
遥控器/ origin / remove-django-authopenid
遥控器/ origin / remove-recaptcha-module
遥控器/原点/ signin-config
遥控器/原产地/ sophia
遥控器/原产地/ sphinx-search
遥控器/原产地/ stackexchange
遥控器/原产地/静态文件
遥控器/ vlad111
remotes / origin / wikipost

- 将镜像推送到远程

$ git push --mirror bbtest2
密码:
致命:远程部分的refspec在以下位置不是有效的名称:capabilities ^ {}
致命:远程端意外挂起


- 普通推送 - 仅用于测试:

$ git push bbtest2
密码:
一切都是最新的

编辑 - 进一步测试日志:首先推动master:

  $ git push bbtest2 master 
密码:
计数对象:24187,完成。
使用多达2个线程的增量压缩。
压缩对象:完成100%(6694/6694)。
写作对象:100%(24187/24187),11.88 MiB | 86 KiB / s,完成。
共计24187(delta 17229),重用23691(delta 16845)
remote:bb / acl:shishani是允许的。接受有效载荷
到https://shishani@bitbucket.org/shishani/test2.git
* [新分支] master - > master

$ git push --all bbtest2
密码:
一切都是最新的

$ git push --mirror bbtest2
密码:
计数对象:4822,完成。
使用多达2个线程的增量压缩。
压缩对象:100%(1540/1540),完成。
写作对象:100%(4246/4246),3.83 MiB | 86 KiB / s,完成。
共计4246(delta 2891),重用3860(delta 2609)
remote:bb / acl:shishani是允许的。接受有效载荷
到https://shishani@bitbucket.org/shishani/test2.git
* [新分支] bbtest2 / master - > bbtest2 / master
* [新分支] origin / HEAD - > origin / HEAD
* [新分支] origin / admin-interface - > origin / admin-interface
* [新分支] origin / adminarea - > origin / adminarea
* [new branch] origin / adolfo-postman - > origin / adolfo-postman
* [new branch] origin / allow-other-login-apps - > origin / allow-other-login-apps
* [新分支] origin / anon-posting - >来源/ anon-posting
* [新分支] origin / askbot-site - > origin / askbot-site
* [新分支] origin / auto-media-revisions - > origin / auto-media-revision
* [new branch] origin / avatars-sidebar - > origin / avatars-sidebar
* [new branch] origin / beta2-english-chinese - >来源/ beta2-english-chinese
* [新分支] origin / better-setup - > origin / better-setup
* [新分支] origin / blockip - > origin / blockip
* [new branch] origin / bug102 - >原产地/ bug102
* [新分支] origin / bugfixes - >起源/错误修正
* [新分支] origin / cache-experiment - > origin / cache-experiment
* [new branch] origin / categories - >原产地/类别
* [新分店]原产地/ cnprog-import - > origin / cnprog-import
* [新分支] origin / common-question-view - > origin / common-question-view
* [新分支] origin / development - >起源/开发
* [新分支] origin / django-registration - > origin / django-registration
* [新分支] origin / elastic-skin - >原产地/弹性皮肤
* [新分支] origin / experimental - >起源/实验
* [新分支]起源/实验合并 - > origin / experimental-merge
* [new branch] origin / fabian - > origin / fabian
* [新分支] origin / fbconnect - > origin / fbconnect
* [新分支] origin / feature73 - > origin / feature73
* [新分支] origin / follow-user - >原产地/追随者
* [新分店]原产地/ gh-pages - > origin / gh-pages
* [new branch] origin / inbox-and-flagged-items - >原产地/收件箱和标记物品
* [新分店]产地/发行116 - >原产地/问题116
* [新分支]原产地/神仙 - > origin / jinja
* [新分支] origin / master - > origin / master
* [new branch] origin / multi-auth-app - > origin / multi-auth-app
* [new branch] origin / new-template - > origin / new-template
* [new branch] origin / newauth - > origin / newauth
* [新分支] origin / password-only - >原产地/仅密码
* [新分店]原产地/ postgres-full-text - > origin / postgres-full-text
* [新分支] origin / pt-i18n - > origin / pt-i18n
* [new branch] origin / refs / heads / skins - > origin / refs / heads / skins
* [new branch] origin / remove-django-authopenid - > origin / remove-django-authopenid
* [new branch] origin / remove-recaptcha-module - > origin / remove-recaptcha-module
* [新分支] origin / signin-config - > origin / signin-config
* [新分支] origin / sophia - > origin / sophia
* [新分店] origin / sphinx-search - > origin / sphinx-search
* [新分支] origin / stackexchange - > origin / stackexchange
* [new branch] origin / staticfiles - > origin / staticfiles
* [new branch] origin / vlad111 - > origin / vlad111
* [新分支] origin / wikipost - >原产地/ wikipost
* [新标签] 0.7.25 - > 0.7.25
* [新标签] 0.7.26 - > 0.7.26
* [新标签] 0.7.27 - > 0.7.27
* [新标签] 0.7.28 - > 0.7.28
* [新标签] 0.7.29 - > 0.7.29
* [新标签] 0.7.30 - > 0.7.30
* [新标签] 0.7.31 - > 0.7.31
* [新标签] 0.7.32 - > 0.7.32
* [新标签] 0.7.33 - > 0.7.33
* [新标签] 0.7.34 - > 0.7.34
* [新标签] 0.7.35 - > 0.7.35
* [新标签] 0.7.36 - > 0.7.36
* [新标签] 0.7.37 - > 0.7.37
* [新标签] 0.7.38 - > 0.7.38
* [新标签]历史记录+ wikipost - >历史记录+ wikipost
* [新标签]删除 - >删除
* [新标签] show - >显示

$


解决方案

I将首先推动主分支,初始化您的空BitBucket回购历史记录。

然后我会推其他所有东西。

  git push bbtest2 master 
git push --mirror bbtest2

设置为使用https(SSL)列在无法通过HTTP推送git仓库


Cloning a given repo from github, then pushing to a fresh repo on bitbucket, and I get the error:

> fatal: remote part of refspec is not a valid name in :capabilities^{}
> fatal: The remote end hung up unexpectedly

What does the error mean - and what's causing it (I'm still new to git).

Here's the log:

- clone from github:
$ git clone git://github.com/ASKBOT/askbot-devel.git  test2
$ cd test2

- create a private git repo on bitbucket:
on the site GUI

- add remote:
$ git remote add bbtest2 https://shishani@bitbucket.org/shishani/test2.git

$ git remote -v
bbtest2 https://shishani@bitbucket.org/shishani/test2.git (fetch)
bbtest2 https://shishani@bitbucket.org/shishani/test2.git (push)
origin  git://github.com/ASKBOT/askbot-devel.git (fetch)
origin  git://github.com/ASKBOT/askbot-devel.git (push)

$ git branch -a
* master
  remotes/origin/HEAD -> origin/master
  remotes/origin/admin-interface
  remotes/origin/adminarea
  remotes/origin/adolfo-postman
  remotes/origin/allow-other-login-apps
  remotes/origin/anon-posting
  remotes/origin/askbot-site
  remotes/origin/auto-media-revisions
  remotes/origin/avatars-sidebar
  remotes/origin/beta2-english-chinese
  remotes/origin/better-setup
  remotes/origin/blockip
  remotes/origin/bug102
  remotes/origin/bugfixes
  remotes/origin/cache-experiment
  remotes/origin/categories
  remotes/origin/cnprog-import
  remotes/origin/common-question-view
  remotes/origin/development
  remotes/origin/django-registration
  remotes/origin/elastic-skin
  remotes/origin/experimental
  remotes/origin/experimental-merge
  remotes/origin/fabian
  remotes/origin/fbconnect
  remotes/origin/feature73
  remotes/origin/follow-user
  remotes/origin/gh-pages
  remotes/origin/inbox-and-flagged-items
  remotes/origin/issue116
  remotes/origin/jinja
  remotes/origin/master
  remotes/origin/multi-auth-app
  remotes/origin/new-template
  remotes/origin/newauth
  remotes/origin/password-only
  remotes/origin/postgres-full-text
  remotes/origin/pt-i18n
  remotes/origin/refs/heads/skins
  remotes/origin/remove-django-authopenid
  remotes/origin/remove-recaptcha-module
  remotes/origin/signin-config
  remotes/origin/sophia
  remotes/origin/sphinx-search
  remotes/origin/stackexchange
  remotes/origin/staticfiles
  remotes/origin/vlad111
  remotes/origin/wikipost

- push mirror to remote

$ git push --mirror  bbtest2
Password: 
fatal: remote part of refspec is not a valid name in :capabilities^{}
fatal: The remote end hung up unexpectedly


- ordinary push - just for testing:

$ git push bbtest2
Password: 
Everything up-to-date

Edit - further testing log: pushing master first:

$ git push bbtest2 master
Password: 
Counting objects: 24187, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (6694/6694), done.
Writing objects: 100% (24187/24187), 11.88 MiB | 86 KiB/s, done.
Total 24187 (delta 17229), reused 23691 (delta 16845)
remote: bb/acl: shishani is allowed. accepted payload.
To https://shishani@bitbucket.org/shishani/test2.git
 * [new branch]      master -> master

$ git push --all bbtest2
Password: 
Everything up-to-date

$ git push --mirror bbtest2
Password: 
Counting objects: 4822, done.
Delta compression using up to 2 threads.
Compressing objects: 100% (1540/1540), done.
Writing objects: 100% (4246/4246), 3.83 MiB | 86 KiB/s, done.
Total 4246 (delta 2891), reused 3860 (delta 2609)
remote: bb/acl: shishani is allowed. accepted payload.
To https://shishani@bitbucket.org/shishani/test2.git
 * [new branch]      bbtest2/master -> bbtest2/master
 * [new branch]      origin/HEAD -> origin/HEAD
 * [new branch]      origin/admin-interface -> origin/admin-interface
 * [new branch]      origin/adminarea -> origin/adminarea
 * [new branch]      origin/adolfo-postman -> origin/adolfo-postman
 * [new branch]      origin/allow-other-login-apps -> origin/allow-other-login-apps
 * [new branch]      origin/anon-posting -> origin/anon-posting
 * [new branch]      origin/askbot-site -> origin/askbot-site
 * [new branch]      origin/auto-media-revisions -> origin/auto-media-revisions
 * [new branch]      origin/avatars-sidebar -> origin/avatars-sidebar
 * [new branch]      origin/beta2-english-chinese -> origin/beta2-english-chinese
 * [new branch]      origin/better-setup -> origin/better-setup
 * [new branch]      origin/blockip -> origin/blockip
 * [new branch]      origin/bug102 -> origin/bug102
 * [new branch]      origin/bugfixes -> origin/bugfixes
 * [new branch]      origin/cache-experiment -> origin/cache-experiment
 * [new branch]      origin/categories -> origin/categories
 * [new branch]      origin/cnprog-import -> origin/cnprog-import
 * [new branch]      origin/common-question-view -> origin/common-question-view
 * [new branch]      origin/development -> origin/development
 * [new branch]      origin/django-registration -> origin/django-registration
 * [new branch]      origin/elastic-skin -> origin/elastic-skin
 * [new branch]      origin/experimental -> origin/experimental
 * [new branch]      origin/experimental-merge -> origin/experimental-merge
 * [new branch]      origin/fabian -> origin/fabian
 * [new branch]      origin/fbconnect -> origin/fbconnect
 * [new branch]      origin/feature73 -> origin/feature73
 * [new branch]      origin/follow-user -> origin/follow-user
 * [new branch]      origin/gh-pages -> origin/gh-pages
 * [new branch]      origin/inbox-and-flagged-items -> origin/inbox-and-flagged-items
 * [new branch]      origin/issue116 -> origin/issue116
 * [new branch]      origin/jinja -> origin/jinja
 * [new branch]      origin/master -> origin/master
 * [new branch]      origin/multi-auth-app -> origin/multi-auth-app
 * [new branch]      origin/new-template -> origin/new-template
 * [new branch]      origin/newauth -> origin/newauth
 * [new branch]      origin/password-only -> origin/password-only
 * [new branch]      origin/postgres-full-text -> origin/postgres-full-text
 * [new branch]      origin/pt-i18n -> origin/pt-i18n
 * [new branch]      origin/refs/heads/skins -> origin/refs/heads/skins
 * [new branch]      origin/remove-django-authopenid -> origin/remove-django-authopenid
 * [new branch]      origin/remove-recaptcha-module -> origin/remove-recaptcha-module
 * [new branch]      origin/signin-config -> origin/signin-config
 * [new branch]      origin/sophia -> origin/sophia
 * [new branch]      origin/sphinx-search -> origin/sphinx-search
 * [new branch]      origin/stackexchange -> origin/stackexchange
 * [new branch]      origin/staticfiles -> origin/staticfiles
 * [new branch]      origin/vlad111 -> origin/vlad111
 * [new branch]      origin/wikipost -> origin/wikipost
 * [new tag]         0.7.25 -> 0.7.25
 * [new tag]         0.7.26 -> 0.7.26
 * [new tag]         0.7.27 -> 0.7.27
 * [new tag]         0.7.28 -> 0.7.28
 * [new tag]         0.7.29 -> 0.7.29
 * [new tag]         0.7.30 -> 0.7.30
 * [new tag]         0.7.31 -> 0.7.31
 * [new tag]         0.7.32 -> 0.7.32
 * [new tag]         0.7.33 -> 0.7.33
 * [new tag]         0.7.34 -> 0.7.34
 * [new tag]         0.7.35 -> 0.7.35
 * [new tag]         0.7.36 -> 0.7.36
 * [new tag]         0.7.37 -> 0.7.37
 * [new tag]         0.7.38 -> 0.7.38
 * [new tag]         history+wikipost -> history+wikipost
 * [new tag]         remove -> remove
 * [new tag]         show -> show

$

解决方案

I would first push the master branch, to initialize your empty BitBucket repo history.
Then I would push everything else.

git push bbtest2 master
git push --mirror bbtest2

All parameters needed to be setup for using https (SSL) are listed in "Unable to push a git repo via HTTP".

这篇关于致命的:refspec的远程部分在以下方面不是有效的名称:capabilities ^ {}的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆