Complex rebasing
Tom Rodriguez
tom.rodriguez at oracle.com
Thu Dec 8 18:47:46 UTC 2016
> On Dec 8, 2016, at 10:39 AM, Andrew Haley <aph at redhat.com> wrote:
>
> On 08/12/16 18:29, Tom Rodriguez wrote:
>> git pull —rebase origin master is the usual command I use
>
> Ah, OK. That is very different from what I did.
>
> I tried "git rebase" but it rebased my checked-out code from my
> personal master, not graalvm's real master.
>
> My remote origin is
>
> https://github.com/theRealAph/graal-core (branch aarch64_graal_misc_fixes)
>
> and I want to rebase from
>
> https://github.com/graalvm/graal-core (branch master)
Right, so in my example origin would be replaced with whatever you named the remote for graalvm/graal-core.
One problem with git is that there are usually 12 ways to do the same thing which complicates giving instructions to someone on how to solve a problem. Having multiple remotes makes it more complicated as well. If you have your own repo you might never use master which can get out of date with upstream. My personal practice is that origin always refers to the repo I will end up pushing to and my personal repo is named after my GitHub user name.
tom
More information about the graal-dev
mailing list