Hi.
I'm very new on git so please excuse my ignorance.
I'm trying to sync my local repository to my bitbucket repository without success.
First I added a remote through "git remote add origin url".
Then I tried pushing my local repository to my online repository by typing "git push -u origin master". That failed and I got this message:
! rejected
failed to push some refs to 'url'
Updates were rejected because the remote contains work that you do
not have locally. This is usually caused by another repository pushing
to the same ref. You may want to first integrate the remote changes
(e.g., 'git pull ...') before pushing again.
See the 'Note about fast-forwards' in 'git push --help' for details.
I've read around the notes given in that answer, but I can't figure out how to solve it.
Any help will be appreciated.