Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.