Created
December 6, 2011 07:24
-
-
Save ronanguilloux/1437186 to your computer and use it in GitHub Desktop.
GIT : Adding a log dir & keeping it always empty in the repo
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
mkdir log | |
touch log/.gitkeep | |
git add log/.gitkeep | |
echo "log/*" >> .gitignore | |
git add .gitignore | |
git ci -m "Added empty log/ folder" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment