Git GUI を使用してリモート ブランチのチェックアウトを行った後、次のreleases/rel_5.4.1
ことをしようとすると、次の予期しないエラー メッセージが表示されますpush
。
fatal: The upstream branch of your current branch does not match
the name of your current branch. To push to the upstream branch
on the remote, use
git push origin HEAD:releases/rel_5.4.1
To push to the branch of the same name on the remote, use
git push origin rel_5.4.1
Gitが何について話しているのかわかりません。origin releases/rel_5.4.1
それが私がチェックアウトしたブランチなので、おそらくプッシュしたいでしょう。したがって、どちらのオプションも私には正しくないようです。
git status
私はブランチにいると言いrel_5.4.1
ます。
my に表示されるブランチは次の.git/config
とおりです。
[branch "rel_5.4.1"]
remote = origin
merge = refs/heads/releases/rel_5.4.1
何が起こっている?