したがって、レポには「testing」と「master」という 2 つの追跡されたブランチがあります。これらは、リモート サーバー上の同じ名前のブランチを追跡しています。push.default の .gitconfig オプションを「追跡」に設定しています。ただし、「git push origin」を実行すると、新しい変更がリモート サーバーのマスター ブランチにマージされます。「git remote show origin」の出力は次のとおりです。
* remote origin
Fetch URL: git+ssh://******************
Push URL: git+ssh://******************
HEAD branch: master
Remote branches:
master tracked
testing tracked
Local refs configured for 'git push':
master pushes to master (up to date)
testing pushes to testing (fast-forwardable)`
基本的に、「git push」と「git pull」と入力するだけで、適切なブランチで自動的に原点にプッシュおよびプルできるようにしたいと考えています。
編集:
[*****]$ git config push.default
tracking
[*****]$ git --version
git version 1.7.3.4