Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Unable to push to remote repo

MosesMj1997 September 8, 2018

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.

1 answer

0 votes
Manju
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
September 10, 2018

Can you pull changes from the remote first, resolve any resulting conflicts and then try to push?

MosesMj1997 September 10, 2018

I tried force push using the terminal and it worked for me,Thanks.

Like Santo Oliva likes this

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events