如何从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 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)