I created a portable development environment off of portable apps and quite a few custom batch files. I would like to keep all instances of it up to date – Dropbox would be an ideal option but I need it to synch on my flash drive and my computer. I think git would work, but the size of the repo will be an issue. I need to know the viability of this idea and how to delete commits to prune extra data when uploading. I think the repo will at least double the total size of the data. Any ideas?
I created a portable development environment off of portable apps and quite a few
Share
If your files are mostly text, Git will much less than double the size of your data. To take an example, I store my Vim configuration files in a Git repository to allow me to easily get at them anywhere, and keep them up-to-date. The config files themselves are just under 3 MB, and the
.gitdirectory for that is only just over 1 MB after 683 commits. It’s smaller than a Subversion checkout, and small enough not to worry about.It used to be necessary to run
git gcin a repository every so often to prune unreachable data from the repository. This was especially true after doing a lot of rebasing or other history editing. But since about Git 1.5, it keeps track of the amount of unreachable data as you go along and automatically prunes it when it gets to be too much. There are configuration options to tune it if you’re really short on space and have time and CPU cycles to spare. Seegit help gcfor details, but I really think you just won’t find space a problem.