Re: Making it possible to do “git push origin” instead of “git push origin <branch>”, without having to one-time prepare each branch for it
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Dec 22, 2016, 21:41 UTC
- Message-ID
- <xmqq7f6rfxpe.fsf@gitster.mtv.corp.google.com>
- In-Reply-To
- <CAJtFkWtjowyGaFfsCVd-HAZM2-3e0=CkkyYfxne8KRdYq5kJ9g@mail.gmail.com>
Stefan Monov <logixoul@gmail.com> writes:
Show 12 quoted lines
> I'd like to use just: > > git push > > or at most: > > git push origin > > rather than having to first check which is the active branch with `git > branch --list`, then type: > > git push origin <branch>
Perhaps you are a target audience of
$ git config push.default current
then?