Sep 18, 2012
1 note
1 note
git .gitignore?
I didn’t know how to tell git to except a file from the ignore. Like your code creates a bunch of .txt files and you don’t want to commit them and clutter your repo. But you need a certain .txt file to be included into that repo.
Add a .gitignore file that looks like this:
*.txt
!LICENSE.txt
Important is to call the !LICENSE.txt after the *.txt call. Or the .gitignore won’t recognize the excepted file.
-
fabiantheblind posted this
About
this is fabiantheblind blogging
Subscribe via RSS.