How to add /.vim directory and all of it's subdirectories to a git repository -


here's ~/.gitignore file:

# ignore * # don't ignore these files !*.vimrc !*.vim !*.bashrc !.gitignore 

the problem .vim directory , want include (and of sub folders) in git repository; however, aren't included current gitignore file.

i've tried this:

# ignore * # don't ignore these files !*.vimrc !*.vim/ !*.bashrc !.gitignore 

and this:

# ignore * # don't ignore these files !*.vimrc !*.vim/* !*.bashrc !.gitignore 

how can ensure vim directory , subdirectories included in git repository?

try !.vim/ or !.vim/**

https://git-scm.com/docs/gitignore has tip:

a trailing "/**" matches inside. example, "abc/**" matches files inside directory "abc", relative location of .gitignore file, infinite depth.


Comments

Popular posts from this blog

javascript - jQuery: Add class depending on URL in the best way -

caching - How to check if a url path exists in the service worker cache -

Redirect to a HTTPS version using .htaccess -