I've trying to push my files into git, but it doesn't work.
This is what I've done before.
git init
git add .
git commit -m "Start"
git remote add origin git@github.com:user/repo.git
The first git push -u origin master
works.
After changing some files and trying to git push -u origin master
again
it doesn't work.
To git@github.com:denis89/gaw8d3.git
! [rejected] master -> master (non-fast-forward)
error: failed to push some refs to 'git@github.com:denis89/gaw8d3.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.
Also git pull doesn't work, because of unmerged files. Any ideas?