If you want a programmer named “cook” to work with you, the first thing you have to do is add the cook to the project in your repository as a developer. Specific steps: Project -> Administration -> Project member Management -> Developer -> Add project member -> Enter “huofu” on GitHub Project -> Properties ->Settings-> Enter “huofu” To demonstrate, I created a trumpet and added it to my project to become the developer.Next we switch the path to disk F to simulate a new user. We enter

 git clone https://gitee.com/blizzawang/lianshou.git
Copy the code

The effect of this directive is to clone the items corresponding to the warehouse address locally. After the execution, there will be an RRD folder under disk F, which is the project pushed by the first user. Let’s call it an administrator, and the second user will be a developer. Then we create a file in the cloned directory, and enter something randomly.

We submit the revised project.

Git add. Git commit -m "this is the second user submitted document" git push master at https://gitee.com/blizzawang/lianshou.gitCopy the code

Thus, our second user pushes the project to the online repository. If there is no prompt for the user name and password, git is still using your first user’s information. You need to change the user and then perform the above operations.The config. TXT file was submitted by Huofu, but it was still submitted by the administrator. It is true that two users are submitting, but since you are submitting from the same computer, the server will still think that your two submissions are the same person. At this time we go back to the first user’s working directory, you will find only one file in the directory, which means that the version of the online warehouse is higher than the version of the first user, at this time we need to update the local warehouse, input

git pull origin master
Copy the code

At this time to check the working directory, found and online warehouse content consistent.