With git version 1.7.1, I'm trying to exclude all files except .php files.
The working solution I found relies on the command !*/
# Ignore Everything
*
# Except these files
!.gitignore
!*/
!*.php
Without the !*/
, it will only include the *.php
files in the root directory. What is !*/
doing that allows this to work?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…