sudo port -d sync

( -d just means debug mode, which means you see what is actually run )

this then will in effect run

git pull --rebase --autostash origin master

One detail just came to my mind.

In your clone, make sure the 'origin' remote is the main macports one, and not some other clone. This helps make things run a bit smoother. You can then have as many other remotes as you want, for various forks. e.g. I (currently) have

Titan ~/Projects/MacPorts/ports > git remote -v
cjones  [email protected]:cjones051073/macports-ports.git (fetch)
cjones  [email protected]:cjones051073/macports-ports.git (push)
giansalvo       [email protected]:giansalvo/macports-ports.git (fetch)
giansalvo       [email protected]:giansalvo/macports-ports.git (push)
herbygillot     [email protected]:herbygillot/macports-ports.git (fetch)
herbygillot     [email protected]:herbygillot/macports-ports.git (push)
michaelld       [email protected]:michaelld/macports-ports.git (fetch)
michaelld       [email protected]:michaelld/macports-ports.git (push)
origin  [email protected]:macports/macports-ports.git (fetch)
origin  [email protected]:macports/macports-ports.git (push)
yan     [email protected]:yan12125/macports-ports.git (fetch)
yan     [email protected]:yan12125/macports-ports.git (push)

so 'origin' is the primary source, and the others are either my own fork, or others I have added to work with feature branches now and then.

Chris

Reply via email to