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

Unable to pull latest changes to branch

I pushed a change on a branch (named 'stitching') that I alone am working on:

 

$ git push origin stitching
Counting objects: 6, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (6/6), done.
Writing objects: 100% (6/6), 787 bytes | 0 bytes/s, done.
Total 6 (delta 4), reused 0 (delta 0)
remote: 
remote: Create pull request for stitching:
remote:   https://bitbucket.org/vokecoredev/fae/pull-requests/new?source=stitching&t=1
remote: 
To bitbucket.org:vokecoredev/fae.git
   9099d1f2..0b182a5c  stitching -> stitching

(Aside: I am not sure why it said it is creating a "pull request" since I am not pushing to a branch anyone else is managing, but I can see the update on bitbucket. FWIW, I marked it as approved.)

On another machine I do a git pull on the same branch and I my changes are not there -- why not?

git pull origin stitching

Where are my changes

 

1 answer

0 votes
Ana Retamal Atlassian Team Jul 14, 2017

Hi Wayne, that command alone will not really work as you expect. You'll need to checkout to the branch you want first, and the push:

 

git checkout <myBranch>

git push origin <myBranch>

With your initial command, what happened is that you pushed your branch into master. I've checked the repository and I could see it belongs to a team where other users are making contributions too, that's why the PR was created.

The above also answers why the git pull in the other machine didn't have your changes, since the changes are in master now. 

Hope this helps you!

Best regards,

Ana 

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Published in Sourcetree

Sourcetree for Windows - CVE-2019-11582 - Remote Code Execution vulnerability

A vulnerability has been published today in regards to Sourcetree for Windows.  The goal of this article is to give you a summary of information we have gathered from Atlassian Community as a st...

4,989 views 0 12
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