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

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Pushing commits to master via SourceTree, on Windows machine, not recognised on master.

Hi,

First of all, I am relatively new to version control, so I hope I am describing my issues below correctly, sorry if I am not. 

I am working off two machines, one Mac and the other Windows. I have used the Windows machine to push changes to my master repo with the use of SourceTree. For some reason the changes are not getting recognised by my master repo and therefore when I shift to using the Mac there is nothing to pull. This issue has only just become evident recently and up until now, I have had no problem. 

The reason I have to shift between machines is that I am sharing my wife's Mac with her, and when she working, I have to use the Widows machine. 

Thanks in advance, 

Marcus. 

 

 

 

 

1 answer

0 votes
Daniel Eads Atlassian Team Mar 09, 2021

Hi @Marcus Cattanach , welcome to the Community!

With git, it's possible to commit to the local master/main branch without pushing to remote/origin. I'd first recommend checking in Sourcetree on the Windows machine to see if you see your latest commits when clicking through the sidebar to select Remotes > origin > master.

From there, I'd suggest looking at your repository in the web interface at bitbucket.org - if you don't see the latest commits there, they didn't push.

Finally, you can try a Fetch on the Mac. This should load all the information from bitbucket.org so if things did get out of sync somehow, the latest commits will be available before you do the pull operation.

By going through those three items one at a time, it should narrow down where things are getting stuck. Let me know at what point things have stopped looking right at and we can troubleshoot further!

Cheers,
Daniel

Thanks for taking the time to answer my query Daniel. I checked the local repo as compared to the remote and the remote was not updated like the one on local. I therefore just deleted the local repo and cloned it again, from remote, and started again. There wasn't a whole lot of commits on local so it didn't take me a huge amount of time. I did all of the above before I saw your response, sorry I didn't put it to the test. I did have a look at your suggestion to check that the local commits are pushed to the remote, is the following screenshot what you were talking about?Screenshot 2021-03-11 at 07.28.37.png

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
CLOUD
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,757 views 10 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you