Re: git pull unclear manual
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 4, 2021, 01:18 UTC
- Message-ID
- <xmqqv9a7emx6.fsf@gitster.c.googlers.com>
- In-Reply-To
- <874khsqq0o.fsf@osv.gnss.ru>
Sergey Organov <sorganov@gmail.com> writes:
Show 14 quoted lines
> Here is how "git help pull" begins: > > <q> > NAME > git-pull - Fetch from and integrate with another repository or a local > branch > > SYNOPSIS > git pull [<options>] [<repository> [<refspec>...]] > </q> > > From this, how do one figures how to "integrate with ... local branch"? > > Is "git pull" useful to integrate with a local branch at all?
Yes, you can refer to your local repository as ".", so
git pull . another-branch
will integrate the history of your local "another-branch" into the history of the branch you have currently checked out.