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

Earn badges and make progress

You're on your way to the next level! Join the Kudos program to earn points and save your progress.

Deleted user Avatar
Deleted user

Level 1: Seed

25 / 150 points

Next: Root

Avatar

1 badge earned

Collect

Participate in fun challenges

Challenges come and go, but your rewards stay with you. Do more to earn more!

Challenges
Coins

Gift kudos to your peers

What goes around comes around! Share the love by gifting kudos to your peers.

Recognition
Ribbon

Rise up in the ranks

Keep earning points to reach the top of the leaderboard. It resets every quarter so you always have a chance!

Leaderboard

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

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

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