なんか意味不明な事になっているな・・・。そもそもremoteとbranchは別概念なので・・・
まず本番用のremote(product
)とテスト用のremote(dev
)があるとしましょう。
ローカルにあるbranchとリモートのbranchとのヒモ付けは
dev_master -> dev/master
product_master -> product/master
になっているとしましょう。
今やりたいのはproduct_master
に新たなcommitをしたい、ということでしょうか。
であれば単にproduct_master
をcheckoutして編集しstageしてcommitしてpushすればいいかと思われます。
ちなみにgit remote show <remote name>
で
$git remote show origin
* remote origin
Fetch URL: https://github.com/yumetodo/consoleapp.git
Push URL: https://github.com/yumetodo/consoleapp.git
HEAD branch: master
Remote branches:
fix/cmake-201810 tracked
fix/remove_reserved_name tracked
master tracked
Local branch configured for 'git pull':
fix/remove_reserved_name merges with remote fix/remove_reserved_name
Local refs configured for 'git push':
fix/remove_reserved_name pushes to fix/remove_reserved_name (up to date)
master pushes to master (up to date)
みたいな情報が見れたりします。
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
退会済みユーザー
2018/11/19 13:05
2018/11/19 13:27
退会済みユーザー
2018/11/20 11:19