Re: [ITCH] Specify refspec without remote
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 19, 2013, 15:43 UTC
- Message-ID
- <7v1ubbl7jn.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <CACsJy8Ad7rKtMd-6BoBtbVa70F0AaJ+OUjEykNh344tPw7F7Vg@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 5 quoted lines
> Assume that we agree on what remote is implied, we could simplify > parsing by specifying the remote with "." (or something short and > unambiguous). So the above command would become > > git push . foo:bar
That is an established idiom, a handy way to update your own bar branch to commit pointed by foo branch when and only when the update fast-forwards.
Please don't.