gitignore excludes not working?

2013-12-06 Thread Martin Langhoff
Tested with git 1.7.12.4 (Apple Git-37) and git 1.8.3.1 on F20. $ mkdir foo $ cd foo $ git init Initialized empty Git repository in /tmp/foo/.git/ $ mkdir -p modules/boring $ mkdir -p modules/interesting $ touch modules/boring/lib.c $ touch modules/interesting/other.c $ touch

Re: gitignore excludes not working?

2013-12-06 Thread Jiang Xin
2013/12/7 Martin Langhoff martin.langh...@gmail.com: Tested with git 1.7.12.4 (Apple Git-37) and git 1.8.3.1 on F20. $ mkdir foo $ cd foo $ git init Initialized empty Git repository in /tmp/foo/.git/ $ mkdir -p modules/boring $ mkdir -p modules/interesting $ touch modules/boring/lib.c $

Re: gitignore excludes not working?

2013-12-06 Thread Duy Nguyen
On Sat, Dec 7, 2013 at 12:26 AM, Martin Langhoff martin.langh...@gmail.com wrote: # Untracked files: # (use git add file... to include in what will be committed) # # modules/boring/ # modules/interesting/other.c $ echo '/modules/' .gitignore $ echo '!/modules/interesting/' .gitignore