まず、設定を確認する。
git config -l
例
gitで複数のリポジトリに同時にpushする。
herokuのテスト環境とbitbucketのようなソースコード管理ツールに同時にpushしたい場合。
.git/confgファイルを編集する。
下記のように2行付け加える。
[remote “名前”]
url = git@heroku.com:◯◯◯.git
url = git@bitbucket.org:◯◯◯.git
fetch = +refs/heads/*:refs/remotes/◯◯◯/*
コメント