I have recently found renewed interest in programming. I’m not sure how to describe it but I’ve made a lot of progress on it, I suppose I was just making everything more complicated then it needed to be. The new xcode uses git for source control which is cool, but I won’t pretend to know entirely why but it is. But now that its there I’ll actually use it.
Naturally the next step was to spend 4 hours trying to figure out how to set up some git repositories on the internets. Most of which were either crazy complex or required money to avoid the crazy complex bits. But I didn’t want to pay money to people just so that other people can’t see how bad my code is <_<
Then I found you can just use dropbox as your master repository then use dropbox magic to put it on the internets. Supposedly there is potential issues if you have more then one or two extra people pushing to a dropbox repository but I’ll cross that bridge if and when I cross it. For now heres the code to do it so I can find it whenever I set up new projects
~/project $ git init
~/project $ git add .
~/project $ git commit -m “first commit”
~/project $ cd ~/Dropbox/git
~/Dropbox/git $ mkdir project.git
~/Dropbox/git $ cd project.git
~/Dropbox/git $ git init –bare
~/Dropbox/git $ cd ~/project
~/project $ git remote add origin
~/Dropbox/git/project.git
~/project $ git push origin master
Then you can do a clone from the dropbox to wherever on any other computers you set up.
Theres also a cool script to do this with the command git dropbox but I can’t seem to get it to work. https://github.com/agnoster/git-dropbox
I think most of why I like this is its kind of a hack. I would probably still use it over other solutions just for that fact. I suppose things like github have the built in bug trackers and pretty web ui which are cool, but where do you put the duct tape?