인수가 뒤따르지 않을 때 '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>

인수를 하나만 제공하면 업스트림 분기의 이름이 되며 이전과 동일한 분기에 유지됩니다.

관련 정보