开发者

What's the best git installation structure for a one man shop?

开发者 https://www.devze.com 2023-01-04 04:35 出处:网络
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

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.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号