git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Another use of "@"?
@ 2013-05-03  2:51 Duy Nguyen
  2013-05-03  6:28 ` Junio C Hamano
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Duy Nguyen @ 2013-05-03  2:51 UTC (permalink / raw)
  To: Git Mailing List, Ramkumar Ramachandra, Felipe Contreras

Hi,

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

but typing long-branch-name (even with TAB completion) is not fun.
Could I do this (or something similar) instead?

git co long-branch-name
git diff A/@
git reset --hard A/@
--
Duy

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2013-05-04 21:12 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-03  2:51 Another use of "@"? Duy Nguyen
2013-05-03  6:28 ` Junio C Hamano
2013-05-03  6:38   ` Junio C Hamano
2013-05-03  6:51     ` Duy Nguyen
2013-05-03  9:23       ` Thomas Rast
2013-05-03 22:09   ` Matthieu Moy
2013-05-04  3:26     ` Duy Nguyen
2013-05-04  3:48       ` Duy Nguyen
2013-05-03  6:39 ` Felipe Contreras
2013-05-04 12:44 ` Ramkumar Ramachandra
2013-05-04 21:11   ` Matthieu Moy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).