On Sat, Jul 20, 2019 at 5:14 PM Ryan Joseph <[email protected]> wrote:
>
> > On Jul 20, 2019, at 4:02 PM, Martin Frb <[email protected]> wrote:
> >
> > "origin/master"   is the not modified trunk?
>
> No, what I did was fork https://github.com/graemeg/freepascal and then a 
> create new feature branches based on master. “origin” I believe refers to my 
> forked repo on GitHub and “upstream” is the original, i.e. 
> https://github.com/graemeg/freepascal.
>
> So what I do when I want to keep up to date is "git pull upstream master” 
> which updates my local “master” branch with changes from graemeg/freepascal. 
> The problem I face now is how to get changes from master into my feature 
> branch. Merging worked fine but then I face the problem of not being able to 
> squash all commits before submitting patches. I’ve just learned now that 
> rebase works BUT I need to squash commits first. Catch 22.
>

As you have "two master", which one is the original and other has your
work, you might use:
git checkout master
git fetch upstream master
git rebase upstream/master

regards,
Marcos Douglas
_______________________________________________
fpc-devel maillist  -  [email protected]
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-devel

Reply via email to