Re: Another use of "@"?
- From
Thomas Rast <trast@inf.ethz.ch>
- Date
- May 3, 2013, 09:23 UTC
- Message-ID
- <8738u4pgbe.fsf@linux-k42r.v.cablecom.net>
- In-Reply-To
- <CACsJy8Btz6=4ZUjW3OR2v-LDaDcDaiK=7ucf8rO8MsG9cXt++g@mail.gmail.com>
Duy Nguyen <pclouds@gmail.com> writes:
Show 22 quoted lines
> On Fri, May 3, 2013 at 4:38 PM, Junio C Hamano <gitster@pobox.com> wrote: >> Junio C Hamano <gitster@pobox.com> writes: >> >>> Duy Nguyen <pclouds@gmail.com> writes: >>> >>>> My setup is a bit peculiar where I do git development on three >>>> different machines. Say I updated branch long-branch-name on machine >>>> A. Then I continue my work on machine B. I would want to hard reset >>>> that long-branch-name on machine B before resuming my work. What I >>>> usually do is >>>> >>>> git co long-branch-name >>>> git diff A/long-branch-name >>>> git reset --hard A/long-branch-name >>> >>> Perhaps >>> >>> git checkout long-bra<TAB> >>> git diff A/!$ >>> git reset --hard !$ > > "diff" does not have to follow "checkout".
At least in bash with readline, you can also use M-. to cycle through the last arguments of the previous commands.
--
Thomas Rast
trast@{inf,student}.ethz.ch