/* in .gitignore

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

 



Hi all,

If you add "/*" (or "*") to '.gitignore' Git will ignore '.gitignore'.
This means that your '.gitignore' appears to work (which in fact it
does) but really it will only work for you because your '.gitignore'
will not be added to the repository. You have to override with an
explicit "!/.gitignore" for it to work correctly. (Or use "git add -f
.gitignore".)

Naturally, this behaviour makes perfect sense: "/*" means everything.
Still, I was wondering whether it might be a good idea to make an
exception for '.gitignore' itself? Then if somebody *really* wanted to
ignore '.gitignore' they could add "/.gitignore" to '.gitignore'?

Cheers,
Hilco
--
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]