git/bitbucketを使ってソースコードを管理しています。
ローカル開発環境(Vagrant/Chefで構成)でgit pullをしたら以下のエラーがでて困っています。
ブランチはmasterではなく、開発用ブランチ(dev)です。
lang
1# git branch 2* dev 3 master 4# git pull origin dev 5ssh: Could not resolve hostname bitbucket.org: Name or service not known 6fatal: Could not read from remote repository. 7 8Please make sure you have the correct access rights 9and the repository exists.
いつもの開発と違ったことと言えば、
今朝、HosterというドメインとIPアドレスを関連づけるものを利用し、ローカルのIP(192...)をktkt.example.comのようにしたことです。
Hosterの接続も落としてpullしてみましたがだめでした。
また、rootユーザではなく、vagrantユーザでpullした場合は、
lang
1error: cannot open .git/FETCH_HEAD: ???????? 2 3
となります。
ステージングサーバでpullした場合は大丈夫でした。
何か原因が解る方いましたら解決策宜しくお願いします。
追記:
vagrantユーザでpullした場合は、
error: cannot open .git/FETCH_HEAD: ????????
となります。
これに対しては、
http://stackoverflow.com/questions/13195814/trying-to-git-pull-with-error-cannot-open-git-fetch-head-permission-denied
を参考に、
chown -R vagrant:vagrant .git/
しました。
error: cannot open .git/FETCH_HEAD: ????????
のエラーは解決しましたが、再度、pullすると
rootユーザと同じエラーが出ます。

回答3件
あなたの回答
tips
プレビュー
バッドをするには、ログインかつ
こちらの条件を満たす必要があります。
2015/06/08 05:38
2015/06/08 05:43
2015/06/08 05:50
2015/06/08 06:41