What's the best git installation structure for a one man shop?
I am trying to implement a version control system for my web apps/sites. I am currently working on 3 different machines (2 win and 1 osx) all of which have Dropbox installed. Inside dropbox I have all my webapp projects in a 'websites' folder. This effectively creates a backup of my source code and syncs all 3 computers. However my current version control is duplicating root folders and renaming. I was wondering how could git make my work easier as a one man shop? should I install git on all of my 3 computers开发者_如何学运维? should I install it on my shared hosting service? What do you think would be the best way to implement a version control system under these circumstances?
Also, my source code should remain private. thanks a lot!
I would recommend using dropbox for synchronizing a bare repo on your 3 computers.
On each of those computer, you can push safely to your local bare repo.
It (the bare repo) get synchronized on the other computers.
You can then, on another computer, pull from the local bare repo (updated).
That being said, dropbox is not always the ideal solution for Git repository sharing, so synchronizing a simple bundle might be less error-prone (and can be done through dropbox or any other file-sharing mean).
I have installed git using gitolite on dreamhost and it has worked well. My problem was that if I installed it dropbox I couldn't access it easily unless I had dropbox installed on the computer. Which isn't always the case. It also allows me to view my repository through redmine which I also have installed on my shared hosting.
精彩评论