I have created a local repo and when I try to push the code to the remote repo I get these following errors!
git -c diff.mnemonicprefix=false -c core.quotepath=false push -v --tags --set-upstream demo master:master
Pushing to https://bitbucket.org/MosesMj1997/demo/src/master/
To https://bitbucket.org/MosesMj1997/demo/src/master/
! [rejected] master -> master (fetch first)
error: failed to push some refs to 'https://bitbucket.org/MosesMj1997/demo/src/master/'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.
Can you pull changes from the remote first, resolve any resulting conflicts and then try to push?
I tried force push using the terminal and it worked for me,Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.