Что означает команда «git rebase», если за ней не указано никаких аргументов?

Что означает команда «git rebase», если за ней не указано никаких аргументов?

Должен ли 'git rebase' принимать хотя бы один аргумент? Что это значит, если просто 'git rebase'?

решение1

Взято со страницы руководства ( 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.

Это означает git rebase, что по умолчанию используется только git rebase branch.<name>.remote branch.<name>, если для этой ветви уже существует настроенный вышестоящий поток — в противном случае он прерывается.

Если вы передадите ему только один аргумент, это будет имя вышестоящей ветки, при этом вы останетесь в той же ветке, в которой находились.

Связанный контент