how to provide prefix arg in magit while doing a pull

101 Views Asked by At

I am trying to do a git pull --rebase from magit following these steps:

  1. C-x g (bound to magit-status)

  2. F (opens the submenu for pulling)

    The menu tells me that I can use the -r switch to do a rebase, so I do:

  3. C-u -r

But the above doesn't seem to work. Any ideas how I can provide the --rebase flag ?

Thanks, Murtaza

1

There are 1 best solutions below

0
On BEST ANSWER

As @abo-abo's comment suggests, you do not need to press C-u to activate the -r switch (or any other switch in any submenu, for that matter). The correct sequence of steps is:

C-x g F -r F

I think what might have tripped you up is the fact that magit calls switches (such as -r) "prefixes" in the message that appears in the echo area when bringing up a submenu:

Type a prefix key to toggle it. Run 'actions' with their prefixes. '?' for more help.