create file name .gitignore in directory and add following code
# Ignore everything in this directory
*
# Except this file
!.gitignore
Posted by Tushar to Tushar's deck (2012-12-11 09:00)
create file name .gitignore in directory and add following code
# Ignore everything in this directory
*
# Except this file
!.gitignore