PDA

View Full Version : git



l3ecl
September 17th, 2010, 01:42 AM
i thought i'd ask here since programmers are more familiar with git

how do i get git to add all hidden files? i want to add all the hidden files in my home directory (.bashrc, .vimrc ect) because i always play around with them.

in return : best simile i heard today

"women are like bagels, i have sex with them"

phrostbyte
September 17th, 2010, 02:57 AM
Try putting

!.*

in the .gitignore file

I'm not 100% sure this will work, but in theory it should.

MadCow108
September 17th, 2010, 07:46 AM
is that what you want?

find . -name ".?*" -type f -print0 | xargs -0 git add