- Я создал новый репозиторий github.
- Я выбрал один из вариантов, который добавил README.md.
- Затем я подключился к проекту на своем жестком диске.
- Я запустил git init: Инициализировал пустой репозиторий git в /Users/myusername/github/myproject/.git/
-
Я запустил git add. "а затем" git commit -m "файлы проекта", которые ответили следующим образом:
[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", который ничего не сказал для фиксации
Но я смотрю на repo, и мои "мои файлы проектов" не существуют. Итак, я запустил 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 нажмите и снова проверите, и мои коммиты не находятся в репозитории github. Единственный раз, когда я вижу коммит, - это когда я запускаю "git log":
MacBook-myproject myusername$ git log
commit ca52fe090e6dbf1b6aa6ee51c3283efbe7549904
Author: User <myemailaddress>
Date: Sat Jun 23 19:22:05 2012 -0400
project files
Я следовал лучшим направлениям, чем мог. Что я делаю неправильно?