Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
のデフォルトの動作git push originは、「同じローカル名とリモート名を持つすべてのブランチをプッシュする」ことです。
git push origin
新しいブランチを作成してnewfeatureチェックアウトするとgit push、ブランチはデフォルトで にプッシュさoriginれますか?
newfeature
git push
origin
git push origin newfeatureそれとも、チェックアウト中でも使用する必要がありますか?
git push origin newfeature
さらに、コマンドはこれにどのようにgit push HEAD関係していますか?
git push HEAD
デフォルトでは、呼び出されたブランチがリモートにすでに存在するnewfeature場合にのみプッシュします。newfeature
push.defaultこれは、構成変数を使用して変更できます。
push.default
git push HEADgit push <name of checked out branch>基本的に、ブランチをチェックアウトしている場合の省略形です。
git push <name of checked out branch>