Skip to content

This is just a simple script I use with larger projects or complex file systems which has a lot of empty folders the system needs to function.

License

Notifications You must be signed in to change notification settings

mortolian/ssh-add-gitkeep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 

Repository files navigation

Intro

This is a simple script that will add the .gitkeep file to any empty folder in a directory structure. This helps the folders to be added to the git repo.

Use Case

You may be converting an old project from SVN to GIT and there could be empty directories which is part of the project structure. This will make certain that this structure stays in tact.

Usage

Make sure the file is executable.

chmod +x addgitkeep.sh

Then simply run it in the directory you want to add the .gitkeep files in. You can also add this as a function in your bash_profile which is very handy.

./addgitkeep.sh

Possible Improvements

  • None at this time

Contribute

You are welcome to submit a pull request with improvements.

About

This is just a simple script I use with larger projects or complex file systems which has a lot of empty folders the system needs to function.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages