ローカル マシンに と という 2 つのレポがlocal1
ありlocal2
ます。だから私は逃げたlocal1
git push local2 sombranch
そして私はこれを手に入れました
remote: error: refusing to update checked out branch: refs/heads/5-0-stable
remote: error: By default, updating the current branch in a non-bare repository
remote: error: is denied, because it will make the index and work tree inconsistent
remote: error: with what you pushed, and will require 'git reset --hard' to match
remote: error: the work tree to HEAD.
remote: error:
remote: error: You can set 'receive.denyCurrentBranch' configuration variable to
remote: error: 'ignore' or 'warn' in the remote repository to allow pushing into
remote: error: its current branch; however, this is not recommended unless you
remote: error: arranged to update its work tree to match what you pushed in some
remote: error: other way.
2 つのリポジトリの歴史はほぼ同じであり、わずかな違いが競合に発展することはありませんでした。を変更する必要がありreceive.denyCurrentBranch
ますか? このコマンドでリモートリポジトリを裸のリポジトリに変えたくありませんgit config --bool core.bare true