помогите пожалуйста решить проблему
на домашнем компьютере я создал небольшой проект. теперь хотел бы его разметстить на github. для этого на hithub я создал репозиторий. при этом выбрал опцию автоматического создания readme.md
проблема в том, что теперь при попытке запушить проект появляются сообщения об ошибках, которые я не могу понять
теоретически нужно сначала сделать pull, а потом уже push, но даже так не получается залить проект на github. вот мои судорожные попытки:
kalinin@kalinin /var/www/html/js/afrika_tanks_files $ git br
game
* master
tests
kalinin@kalinin /var/www/html/js/afrika_tanks_files $
kalinin@kalinin /var/www/html/js/afrika_tanks_files $ git push
warning: push.default is unset; its implicit value is changing in
Git 2.0 from 'matching' to 'simple'. To squelch this message
and maintain the current behavior after the default changes, use:
git config --global push.default matching
To squelch this message and adopt the new behavior now, use:
git config --global push.default simple
When push.default is set to 'matching', git will push local branches
to the remote branches that already exist with the same name.
In Git 2.0, Git will default to the more conservative 'simple'
behavior, which only pushes the current branch to the corresponding
remote branch that 'git pull' uses to update the current branch.
See 'git help config' and search for 'push.default' for further information.
(the 'simple' mode was introduced in Git 1.7.11. Use the similar mode
'current' instead of 'simple' if you sometimes use older versions of Git)
Username for 'https://github.com': zlodiak
Password for 'https://zlodiak@github.com':
To https://github.com/zlodiak/afrika_tanks_2.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'https://github.com/zlodiak/afrika_tanks_2.git'
hint: Updates were rejected because the tip of your current branch is behind
hint: its remote counterpart. Integrate the remote changes (e.g.
hint: 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
kalinin@kalinin /var/www/html/js/afrika_tanks_files $ git pull
There is no tracking information for the current branch.
Please specify which branch you want to merge with.
See git-pull(1) for details
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> master
kalinin@kalinin /var/www/html/js/afrika_tanks_files $ git pull master
fatal: 'master' does not appear to be a git repository
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.