¿Qué significa el comando 'git rebase' cuando no le siguen argumentos?

¿Qué significa el comando 'git rebase' cuando no le siguen argumentos?

¿'git rebase' debería tomar al menos un argumento? ¿Qué significa simplemente 'git rebase'?

Respuesta1

Tomado de la página de manual ( git help rebase):

   git rebase [-i | --interactive] [options] [--exec <cmd>] [--onto <newbase>]
           [<upstream>] [<branch>]
   git rebase [-i | --interactive] [options] [--exec <cmd>] [--onto <newbase>]
           --root [<branch>]
   git rebase --continue | --skip | --abort | --edit-todo

   If <branch> is specified, git rebase will perform an automatic git
   checkout <branch> before doing anything else. Otherwise it remains on
   the current branch.

   If <upstream> is not specified, the upstream configured in
   branch.<name>.remote and branch.<name>.merge options will be used; see
   git-config(1) for details. If you are currently not on any branch or if
   the current branch does not have a configured upstream, the rebase will
   abort.

Esto significa que git rebase, por sí solo, el valor predeterminado es git rebase branch.<name>.remote branch.<name>, siempre que ya exista un flujo ascendente configurado para esta rama; de lo contrario, se aborta.

Si solo le das un argumento, será el nombre de la rama ascendente, manteniéndote en la misma rama en la que estabas.

información relacionada