Re: Detached HEAD warning (again)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




On Mar 31, 2009, at 11:04 AM, Johannes Schindelin wrote:

	$ git submodule update --init
	# sub/ is created
	$ (cd sub && touch a && git add a && git commit -am "Add new file")
	[detached HEAD 8641889] Add new file
	 0 files changed, 0 insertions(+), 0 deletions(-)
	 create mode 100644 a

	$ git submodule update
	$ ls sub/a
	ls: sub/a: No such file or directory

	$ cd sub
	$ git checkout HEAD@{1}

Yes, I know that the commits can still be recovered
(otherwise this would be a much bigger issue), but 'git
reflog' has never been a necessary part of a workflow, has
it? It's nifty and can be very useful in situations where you
accidentally lost something, but you can hardly call this a
nice workflow or expect people that use submodules to know
about this.

- Pieter
--
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Kernel Development]     [Gcc Help]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [V4L]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]     [Fedora Users]

  Powered by Linux