ubuntu16.04
gitを使ったデプロイ方法
こちらを参考に複数のリモートリポジトリにpushを行いたいのですが、
一つはgithubのリポジトリへ
二つ目はサクラvpsのubuntu上のリポジトリへ
準備としてmacからssh接続は可能にしてあります。
githubへはすでに接続可能です。
簡単にssh接続できる様に
.ssh/config を設定
Host sakura HostName xxx.xxx.xxx.xxx Port 22 User ubuntu IdentityFile ~/.ssh/id_ecdsa Host github.com HostName gitHub.com IdentityFile ~/.ssh/id_ecdsa User git
サーバー側のリポジトリを作成して
$ ssh sakura SAKURA Internet [Virtual Private Server SERVICE] $ cd /home/user1/gitRemote $ git init --bare hogeProject.git
.git/configにサクラ側にurlを追加
1 [core]↩ 2 >-repositoryformatversion = 0↩ 3 >-filemode = true↩ 4 >-bare = false↩ 5 >-logallrefupdates = true↩ 6 >-ignorecase = true↩ 7 >-precomposeunicode = true↩ 8 [remote "origin"]↩ 9 >-url = ssh://github.com/Grilled-Python/googleranker.git↩ 10 >-url = sakura://home/ubuntu/gitremote/googleranker.git↩ 11 >-fetch = +refs/heads/*:refs/remotes/origin/*↩
ターミナル側でpushするとエラーが表示されます。
git push origin master Everything up-to-date fatal: unable to find remote helper for 'sakura'
githubの方は成功していると思われますが、
サクラ側の方が見つからない様です。
よろしくお願いいたします。
回答1件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2019/02/08 09:35
2019/02/08 09:37
2019/02/08 09:37
2019/02/08 09:38
2019/02/08 09:40 編集
2019/02/08 09:42
2019/02/08 09:56
2019/02/08 09:57
2019/02/08 10:06
2019/02/09 01:25