Use Git@oschina to achieve collaborative work.

Source: Internet
Author: User

Because I built a new team, the people on the team are not familiar with git, so I have this article. I am using the git-1.9.4 version, so I recommend that members of the team also use this version. The first is to download git, this yourself go online to find it, a lot of, remember is 1.9.4 version. Please pay attention to this place when installing. Remember to put the box inside the hook, this is the right-click menu of things, very important.

Then, after you've installed it, double-click the Git bash icon on your desktop to open a command-line window. Enter the following items separately, preferably the name and Oschina managed git name and mailbox, easy to manage

git config--global user.name "your name"

git config--global user.email "your email" and the next step is to work together, first in [email protected], you need to be a member of this project, of course, I am the administrator, need to put you in, First step your account needs to be tied to the project. This step I can remind you that the concrete is not more cumbersome. After you have bound the project, I can set you up as an untapped person.  Of course, if you want to participate in this project, the first step is to fork the project and want to get the project into its own space. After you fork, you need to clone the project locally, right-click on a location you want to store locally, and choose Git bash here to open a command-line window. Enter the command git clone "you want to clone the address", of course, the cloned address is the address of your own space project, is just fork to your own space address, such as: This will be in your local build a warehouse. Next, if you want to add an article, such as I create a new file here, then I right-click Git bash here to open a command-line window. Enter git add * (this means add all files), then execute git commit-u "first commit", then execute GIT push-u Origin master, enter your account number and password, that is [email protected] Account Number of passwords. Completed the submission to their remote repository. At this time you still need to submit files to the main warehouse, what to do?      Use Pull Request. Then prompt you, from your XX branch to the XX target branch, so you enter the title and to submit the words are OK, because my project has 2 branches, a master stable version, a develop development version. So, just submit it to develop, write your own words, and wait for the project owner to approve the pass on OK. Then check it out here and it's OK.

  

Use [email protected] to implement the method of working together.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.