Current location - Training Enrollment Network - Education and training - Yuxi java Training School tells you about java source code management and version control tools?
Yuxi java Training School tells you about java source code management and version control tools?
Java projects are generally developed by teams, and many people write a project together. Code integration requires the use of specialized source code management tools. In addition, the continuous updating of java project versions also requires version management. Therefore, source code management and version control tools must be mastered by every java programmer. At present, the popular java version control tools mainly include svn and git. Yuxi Beida Jade Bird/thinks that these two tools are also necessary tools for every java programmer to master skillfully.

SVN

SVN, the abbreviation of Subversion, is an open source version control system. Compared with RCS and CVS, SVN adopts branch management system, and its design goal is to replace CVS. Many version control services on the Internet are migrated from CVS to Subversion. Simply put, SVN is used for the purpose that many people * * * develop the same project and * * * use resources. The disadvantage of SVN is that it relies too much on the network and is not suitable for distributed development.

The workflow of using svn is as follows: 1. Download the latest code of the project group from the slave server in the morning.

2. Enter your own branch, work, and submit the code to your own branch of the server every hour (many people have this habit. Because sometimes you have to modify the code, and finally you want to return to the previous hour's version, or see which code you modified in the previous hour, you need to do this).

It's almost time to get off work. Merge your own branch into the main branch of the server, and a day's work will be completed and reflected on the server.

food/rice bucket

Git is an open source distributed version control system, which can effectively and quickly handle project version management from very small to very large.

Git is an open source version control software developed by LinusTorvalds to help manage Linux kernel development. Different from the commonly used version control tools CVS, Subversion, etc. It uses a distributed version library and has no server-side software support (ps: This score is different from what kind of server is used, whether http protocol or git protocol is used, etc. And there is still interaction with the server during push and pull. ), making the release and communication of source code extremely convenient.

At present, GIT can be used under windows, and there are two main methods: msysgit and Cygwin. Cygwin is used in a similar way to Linux. The Windows version of GIT provides a friendly GUI (graphical interface), which can be used soon after installation.