前提・実現したいこと
Githubにてローカルレポジトリーからリモートリポジトリーへ push を実行したいです。
発生している問題・エラーメッセージ
github公式サイトに掲載されている方法に従い、git init から順に実施してきましたが、git push の段階で詰まってしまいます。
下記に、実際のコードを記載しましたので、ご覧ください。
$ git push -u origin master fatal: unable to access 'https://github.com/gyakupanda/test.git/': Could not resolve host: github.com; Unknown error
また上記が出たのち、再び git add → git commit -m "commnet" と進めていくと、下記ののメッセ―ジが返りcommitが実施されません。
$ git add README.md $ git commit -m "test" # On branch master nothing to commit, working directory clean
試したこと
git initからの一連の流れを下記に転載します。
[vagrant@localhost github]$ echo "# test" >> README.md $ git init Initialized empty Git repository in /home/vagrant/RubyLesson/Development/github/.git/ $ git add README.md $ git commit -m "first commit" [master (root-commit) b6a86b3] first commit 1 file changed, 1 insertion(+) create mode 100644 README.md $ git remote add origin https://github.com/gyakupanda/test.git $ git push -u origin master fatal: unable to access 'https://github.com/gyakupanda/test.git/': Could not resolve host: github.com; Unknown error
補足情報(FW/ツールのバージョンなど)
・環境:仮想マシン(Virtul Box + CentOS7.0)
※初めての質問のため、不足している情報などございましたらご教示ください。
宜しくお願い致します!
回答1件
あなたの回答
tips
プレビュー