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!
Best regards,
Ana
Online forums and learning are now in one easy-to-use experience.
By continuing, you accept the updated Community Terms of Use and acknowledge the Privacy Policy. Your public name, photo, and achievements may be publicly visible and available in search engines.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.