Re: Detached HEAD warning (again)

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

 



Hi,

On Mon, 30 Mar 2009, Pieter de Bie wrote:

> I strongly remember there being a discussion about this a few weeks ago, 
> but I can't find it. Basically, someone wanted to introduce a warning 
> every time someone commits on a detached HEAD. This was shot down 
> because there already is a big warning when you detach your HEAD (with 
> which I agree).
> 
> However, someone here: http://news.ycombinator.com/item?id=538619 
> pointed to an example here: http://book.git-scm.com/5_submodules.html , 
> which works with submodules:
> 
> 	$ 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}

Ciao,
Dscho
--
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