Multiple people jointly use a github repository to achieve version management, and multiple people develop a project

In the past, github + IntelliJ IDEA + git (which was implemented on the basis of git) was used to implement code version management. With version control, you can write test code as you like without worrying about other problems.

However, this is all working on a code base by yourself, so how can you invite others to work on this code base with you?

That is, a warehouse can have many users. Just like we use svn in the company, teams can use svn teamwork to realize project work.

Before that, you must also have your own code repository on the github website. Otherwise, how to share multiple people to work together?

How to use github + IntelliJ IDEA to implement code version management

Reference link: Win 7 64 bit IntelliJ IDEA illustrates in detail how to use GitHub (git) to implement version control and management of projects

Is it badly written, or is there a problem? Just leave a message directly, I will continue to correct and update the article.

After you implement the version management of local code, don't you submit it every time you make changes?

But, when you commit, you may not know it. The code you submitted is still in your local area and has not been submitted to the repository on the github website.

Specific reference links: IntelliJ IDEA local code submissions cannot be found on the github website: github is not synchronized with the local, although the submission is displayed locally, but not visible on the github website

This is also necessary to understand. Otherwise, you think that your code has been submitted, but the buddies who work with you are always unable to update it there. That would be embarrassing.

How to realize the detailed steps of multiple people to jointly manage a code warehouse


This place, because the style of this github website may change, but the professional terminology will not change, just like wherever you go, your name is always the same, unless you do something unknown , just to make a change.

The first step is as above, adding the buddies to be together under the corresponding project.


The second step is to share your code with your friends.


Select your project, then copy this address and send it to the past. Your buddies, just download it. The premise is that your buddy has also implemented the version management of github + IntelliJ IDEA mentioned above on his computer.


Just download it with github.


The copied address is placed in the URL above, and the following is where to choose to download the project and what the directory is. This posture is similar to the operation of svn.

Then, your little friend, you can. Submit the code over there,

Note that submission is just a simple submission to the local. You must push it again to go to the repository of the github website.


After selecting the entire project, just follow the picture to operate.

After the push on his side is finished, how do you synchronize on your side? That is to submit him to download to your local.

The witty friends, it is estimated that there is a button Pull on the top of the picture above Push. Yes that's him. After you click, as follows.


Thus,

Even if it's over.

As you can see, there are 2 people in the current submission record. That is to say, two people are now operating the same code block at the same time.


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325934361&siteId=291194637