Skip to content

Instantly share code, notes, and snippets.

@ronanguilloux
Created December 6, 2011 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ronanguilloux/1437186 to your computer and use it in GitHub Desktop.
Save ronanguilloux/1437186 to your computer and use it in GitHub Desktop.
GIT : Adding a log dir & keeping it always empty in the repo
#!/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