相关疑难解决方法(0)

删除远程主分支,由于是当前分支而被拒绝

如何从GitHub/Bitbucket中删除远程主分支?

我尝试着:

# git push bb --delete master
remote: bb/acl: user is allowed. accepted payload.[K
remote: error: refusing to delete the current branch: refs/heads/master[K
To ssh://git@bitbucket.org/user/reponame.git
 ! [remote rejected] master (deletion of the current branch prohibited)
error: failed to push some refs to 'ssh://git@bitbucket.org/user/reponame.git' 
Run Code Online (Sandbox Code Playgroud)

我也试过了

git push bb :master
Run Code Online (Sandbox Code Playgroud)

但这一切都行不通.

git github bitbucket

60
推荐指数
2
解决办法
4万
查看次数

无法在Windows上的作曲家中使用远程存储库

我有一个带库的存储库.它可以成功克隆.

$ git clone file:////remote/repo/library
$ cd library
$ composer validate
./composer.json is valid, but with a few warnings
Run Code Online (Sandbox Code Playgroud)

但似乎这个转座不能通过作曲家包含来使用.

...
"repositories": [
    {
        "type": "git",
        "url": "file:////remote/repo/library"
    }]
 ...
Run Code Online (Sandbox Code Playgroud)

试图安装

$ composer install -vvv
... 
Loading composer repositories with package information
Executing command (//remote/repo/library): git show-ref --tags
Executing command (//remote/repo/library): git branch --no-color --no-abbrev -v
Executing command (//remote/repo/library): git branch --no-color
Executing command (//remote/repo/library): git show "master":composer.json

  [Composer\Repository\InvalidRepositoryException]
  No valid composer.json was found in any branch or tag of …
Run Code Online (Sandbox Code Playgroud)

php windows git composer-php

14
推荐指数
2
解决办法
915
查看次数

标签 统计

git ×2

bitbucket ×1

composer-php ×1

github ×1

php ×1

windows ×1