Quantcast
Channel: git ignore exception - Stack Overflow
Viewing all articles
Browse latest Browse all 13

Answer by Miladiouss for git ignore exception

$
0
0

If you have a directory and want to ignore everything with the exception of some files (e.g. *.py files), you can do:

sub-dir/**/*.*!sub-dir/**/*.py

Viewing all articles
Browse latest Browse all 13

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>