bitbucket workflow question

7 views
Skip to first unread message

Christine Simpson

unread,
May 8, 2012, 5:28:32 PM5/8/12
to enzo...@googlegroups.com
Hi all,

I want to pull changes from the main development repository enzo-dev
into my fork enzo-dev-christine on bitbucket. I thought I could do a
pull request from enzo-dev into my fork enzo-dev-christine but it looks
like you can only go the other way (from the fork to the main repo).
Does anyone know I do this?

Christine

Matthew Turk

unread,
May 8, 2012, 5:30:28 PM5/8/12
to enzo...@googlegroups.com
Sure!

cd /path/to/your/local/repo
hg pull https://bitbucket.org/enzo/enzo-dev/
hg push

That'll push to the "default" path which should be your fork. You can do:

hg paths

to see which aliases are set up, and you can add more by editing
.hg/hgrc and adding them. For instance, mine looks like:

[paths]
default = https://bitbucket.org/MatthewTurk/enzo-dev
enzo = https://bitbucket.org/enzo/enzo-dev

so I can do:

hg pull enzo
hg push

to update my "fork".

-Matt
> --
> You received this message because you are subscribed to the Google Groups "enzo-dev" group.
> To post to this group, send email to enzo...@googlegroups.com.
> To unsubscribe from this group, send email to enzo-dev+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/enzo-dev?hl=en.
>

Nathan Goldbaum

unread,
May 8, 2012, 5:39:15 PM5/8/12
to enzo...@googlegroups.com
Alternatively, instead of messing with your hgrc file, you can also do


to pull from the 'primary' enzo-dev repo.

I also like turning on the bitbucket ssh key service so you don't have to type in your username and password every time you push to any repo or pull from a private repo.  See this page in the bitbucket docs: http://goo.gl/wilrV

Cheers,

Nathan

Christine Simpson

unread,
May 8, 2012, 5:44:52 PM5/8/12
to enzo...@googlegroups.com
Thanks!
Reply all
Reply to author
Forward
0 new messages