Re: .gitignore with `/*` to check $HOME into Git

2013-10-18 Thread Sean Whitton
Hey, I think the main risk here is that you could fail to realise what your git commands are doing and accidentally wipe stuff out of your home directory, which would suck. I seem to remember Torvalds, or some git documentation, expicitly saying not to have a git repo in your ~. Perhaps the most

Re: .gitignore with `/*` to check $HOME into Git

2013-10-18 Thread Karl Wiberg
On Fri, Oct 18, 2013 at 12:17 AM, Evan R. Murphy wrote: > # Ignore everything by default > /* > # "Unignore" this .gitignore file > !/.gitignore > # Add here everything else you want to unignore > !/.vimrc You don't need to unignore files that are already under version control; as soon as you've

Re: .gitignore with `/*` to check $HOME into Git

2013-10-18 Thread Evan R. Murphy
Thanks for the replies. I'll try this method of just using `*` with `git add -f`. At first I thought it would be better to explicitly list included files in .gitignore but now it just seems like more work :) Evan ___ vcs-home mailing list vcs-home@lists.

Re: .gitignore with `/*` to check $HOME into Git

2013-10-18 Thread Brian May
On 18 October 2013 16:55, Karl Wiberg wrote: > You don't need to unignore files that are already under version > control; as soon as you've git add'ed them, git won't ignore them > anymore. So there should never be a need to unignore anything that > doesn't have a glob in it. > In which case, wh