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

Unable to pull latest changes to branch

Wayne Cochran July 12, 2017

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
Atlassian Team members are employees working across the company in a wide variety of roles.
July 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
AUG Leaders

Atlassian Community Events