PHP Framework Yii2, developers about 5, want to do a code version management, easy to submit and maintenance, but do not know how to complete, if there is a good solution, I hope to have detailed steps, such as online or local area network, is SVN or git, server to how, similar but not limited to this, hope to get help
Reply content:
PHP Framework Yii2, developers about 5, want to do a code version management, easy to submit and maintenance, but do not know how to complete, if there is a good solution, I hope to have detailed steps, such as online or local area network, is SVN or git, server to how, similar but not limited to this, hope to get help
There are 2 types of solutions:
1, build their own services
can choose Gogs or Gitlab function enough, or choose commercial bitbucket 10 users to buy an authorized $10
2. Using the GIT service
such as: GitHub, domestic gitcafe, etc.
My side in the user Gitlab, the current tens of thousands of users and warehouses used very stable
1. Which version management tool do you choose Git or svn?
I personally think that although you are now a small team, maybe SVN is enough, but it is also the wall cracked to recommend git, the reason is simple: the trend. And it's also a trend.
I now default you have selected Git.
2. Choose an existing GIT version server or build a git server yourself
If you choose an existing product, GitHub will be able to (except for a private warehouse) and some companies that have come into contact with paid GitHub are also recommended BitBucket (the team can build free warehouses within 5 people).
If you are still worried about code security, to take your own server, then there are too many methods on the Internet.
You can consider using Gogs, configure local area network or extranet access can be, easy to deploy. This is what our company is using now.
If you do not have to deploy the server yourself, I believe you can choose Coding.net as a code hosting, the project is not very large is completely free. Based on comments @liu_jing comments, of course you can choose other code hosting vendors, such as GitHub (mainly because of the charges, if you can accept the choice)
If you need to deploy your own git, you can choose Gogs, he is a go language writing open-source software, it is worth your try.
Personal recommendations First, I'm on top of him now. Nearly 20 + team projects are hosted
http://git.oschina.net/This is not a poster, at least in the domestic or relatively positive improvement of the GIT system, is stable, not for commercial purposes, but if it is a business project, it is necessary to consider other rights control tools
Use Git for distributed, easy code management
I think my project code is put on my own LAN is better, in the company to find a machine to make a Gitlab
I wrote an article on the blog: Build your own private GitHub with Gitlab
I am using open source China, feel OK, private projects are free
Small items on the line is better, staff mobility is also flexible, code security, you control it.
Git actually I think coding good ah!
Domestic servers, fast. You don't have to do it yourself, as if you can deploy the demo directly. Although I didn't use it.