True. Well noted - I'd overlooked that issue. Philip ----- Original Message ----- From: John McKown To: [email protected] Sent: Wednesday, February 20, 2013 10:16 PM Subject: Re: [git-users] Help with .gitignore
Oh, and I might add that if the OP does a "git rm", it would be a very good idea to use the --cached otherwise the actual files will also be removed from the WEB-INF subdirectory. Been there, done that. Luckily I was able to recover by doing a "git checkout HEAD^ -- files". On Wed, Feb 20, 2013 at 4:05 PM, Philip Oakley <[email protected]> wrote: From: Tom Avey To: [email protected] Sent: Wednesday, February 20, 2013 9:46 PM Subject: [git-users] Help with .gitignore I could use some help with gitignore. I set up a .gitignore file in the root of my project with a line for WEB-INF. Before setting up that .gitignore, the project has already been "init" and "commit" to master as well some branching. Do I have to do anything else? It appears that git is not ignoring the files in WEB-INF. Those files that are already in your repo (that is: they are 'tracked' by git) and will continue to be tracked until you specifically remove them ('git rm <files>'). The learning point is to add your .gitignore immediately after you 'git init' and before you commit any of your work files. It is easy to forget. Philip -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. -- This is a test of the Emergency Broadcast System. If this had been an actual emergency, do you really think we'd stick around to tell you? Maranatha! <>< John McKown -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out. No virus found in this message. Checked by AVG - www.avg.com Version: 2013.0.2899 / Virus Database: 2639/6116 - Release Date: 02/19/13 -- You received this message because you are subscribed to the Google Groups "Git for human beings" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
