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:masterPushing 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 dohint: not have locally. This is usually caused by another repository pushinghint: to the same ref. You may want to first integrate the remote changeshint: (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.
It looks like you're new here. Sign in or register to get started.