- github に新しいリポジトリを作成しました。
- README.md を追加するオプションの 1 つを選択しました。
- 次に、ハード ドライブのプロジェクトに cd します。
- git init を実行しました: Initialized empty Git repository in /Users/myusername/github/myproject/.git/
「git add」を実行しました。次に、「git commit -m 'project files'」と入力すると、次のように応答しました。
[master (root-commit) ca52fe0] project files 981 files changed, 257939 insertions(+), 0 deletions(-) create mode 100644 index.php create mode 100644 license.txt create mode 100644 readme.html create mode 100644 wp-activate.php ...
- 次に、「git remote add origin https://github.com/myusername/myproject.git」を実行しました
- 次に、「git push origin master」を実行しました
- 次に、コミットすることを何も言わなかった「git status」を実行しました
しかし、私はレポを見て、私の「私のプロジェクトファイル」コミットはそこにありません。それで、 git pull を実行したところ、次のようになりました。
You asked me to pull without telling me which branch you
want to merge with, and 'branch.master.merge' in
your configuration file does not tell me, either. Please
specify which branch you want to use on the command line and
try again (e.g. 'git pull <repository> <refspec>').
See git-pull(1) for details.
そして git push して再度チェックしましたが、それでも私のコミットは github リポジトリにありません。コミットを確認できるのは、「git log」を実行したときだけです。
MacBook-myproject myusername$ git log
commit ca52fe090e6dbf1b6aa6ee51c3283efbe7549904
Author: User <myemailaddress>
Date: Sat Jun 23 19:22:05 2012 -0400
project files
私はできる限りgithubの指示に従いました。私は何を間違っていますか?