[prev in list] [next in list] [prev in thread] [next in thread]
List: git
Subject: =?UTF-8?Q?Making_it_possible_to_do_=E2=80=9Cgit_push_origin=E2=80=9D_inste?= =?UTF-8?Q?ad_of_=E2=80=
From: Stefan Monov <logixoul () gmail ! com>
Date: 2016-12-22 21:14:31
Message-ID: CAJtFkWtjowyGaFfsCVd-HAZM2-3e0=CkkyYfxne8KRdYq5kJ9g () mail ! gmail ! com
[Download RAW message or body]
Hi.
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>
At [1] and [2] I've seen that if I do this once:
git push -u origin <branch>
then from then on I can use just `git push` _for that branch_.
However, I don't want to do this "setup" step for each branch, because
it's extra work that I also may forget to do.
Why is this "setup" step necessary and can I avoid it?
Thanks,
Stefan
[1] http://stackoverflow.com/q/19312622
[2] http://stackoverflow.com/q/6529136
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic