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
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!
Supported Platforms macOS Windows We recently introduced support for additional hosting services such as GitHub Enterprise, GitLab (Cloud, Community Edition, Enterprise Edition), and...
Connect with like-minded Atlassian users at free events near you!Find a group
Connect with like-minded Atlassian users at free events near you!
Unfortunately there are no AUG chapters near you at the moment.Start an AUG
You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs