Is this git handling of a problem on my macports-ports fork&clone OK?

Gerben Wierda gerben.wierda at
Sun Feb 20 23:01:12 UTC 2022

I’m certainly not pushing to my master, if I create changes I use branches. I do a pull request from such a branch (rebased with an updated master from upstream)

It’s just that when I don’t have any work outstanding, I have a set of commands that creates a hard reset from upstream which is then pushed to my own fork on GitHub. Just to be on the safe side as git has too much rope to hang myself with.

Stuff like ‘—autostash' and ‘popping the stash’ is gobbledygook to me. git is just something that covers so many complex scenario’s and I am using it so little in those scenarios that most of it is simply out of my understanding. 

Gerben Wierda (LinkedIn <>)
R&A IT Strategy <> (main site)
Book: Chess and the Art of Enterprise Architecture <>
Book: Mastering ArchiMate <>

> On 20 Feb 2022, at 18:37, Joshua Root <jmr at> wrote:
> Our suggested method of updating a fork is here: <>
> Hopefully you're not committing to master locally, as that's just asking for trouble. If you're not, no resetting or force pushing of master should be necessary. If you have uncommitted local changes, you probably need to use --autostash when rebasing. If there are conflicts, you resolve them when the stash is popped at the end.
> If you then create your PR branches starting from master, everything should work pretty smoothly.
> - Josh

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <>

More information about the macports-users mailing list