pol / git-keep-dirs

A git repo for Samuel Gélineau's git wrappers to handle empty directories in git

Home Page:http://gelisam.blogspot.com/2008/06/rant-against-gitkeep-and-solution.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

git-empty-dirs

Makes git look like it handles empty directories.

Installation

Add "bin" to your "$PATH" before git's location (which bin/git expects to be "/usr/bin", but you can change that easily).

Usage

git-status will now remind you of directories which are untracked because they're empty. Track them by doing "git add

/.gitkeep", like my git-status says.

You can then commit your addition and the file will hide forever. And I don't mean "hidden" because its name begins with a dot, it really won't be there to clutter your filesystem. You can delete it (and the folder it protects) by using "git-rm

".

Bugs

The ".gitkeep" files will show up in git-archive's tarballs. Use the provided "tar-stripkeep" to get rid of them.

About

A git repo for Samuel Gélineau's git wrappers to handle empty directories in git

http://gelisam.blogspot.com/2008/06/rant-against-gitkeep-and-solution.html