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

Pushing to master error because "remote contains work" despite empty repo?

Raymond Wallington November 30, 2021

Hi guys,

I'm trying to get my local repo to connect to a remote repo on bitbucket that I just created. The remote repo is completely empty, it doesn't even have a gitignore. Even so, when I try to push a commit to the remote repo, it throws an error saying "the remote contains work that you do not have locally" which makes absolutely no sense to me. It suggests pulling from the remote, which I tried, and it just gives me another error that I can't even decipher. Below is a screenshot to both:

repo.pngrepo2.png

1 answer

1 accepted

1 vote
Answer accepted
Raymond Wallington November 30, 2021

as with everything, as soon as I get frustrated enough to make a post asking for help, I find the answer. Apparently I was supposed to fetch instead of pull, now the repo works exactly as expected.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events