1) создаю репозиторий на gihub
2) у себя в каталоге проекта делаю:
> git add -A .
c:\Django\mr>git status
On branch master
Initial commit
Changes to be committed:
(use "git rm --cached <file>..." to unstage)
new file: .gitignore
new file: loginsys/__init__.py
new file: loginsys/admin.py
new file: loginsys/apps.py
...
c:\Django\mr>git log
fatal: your current branch 'master' does not have any commits yet
c:\Django\mr>git remote add origin https://github.com/username/myproject.git
c:\Django\mr>git push -u origin master
error: src refspec master does not match any.
error: failed to push some refs to 'https://github.com/username/myproject.git'
В интернетах встречается указание, что при такой ошибке надо сперва сделать коммит. Пытаюсь:
c:\Django\mr>git commit -m 'First commit'
error: pathspec 'commit'' did not match any file(s) known to git.
Что я делаю не так?