MySQL Basic ④

Source: Internet
Author: User
Tags git clone

---restore content starts---

2 better git online repositories: foreign www.github.com domestic git.oschina.net (code cloud)

The purpose of the remote repository is to get everyone to exchange code.

1. First create a project remotely

On-line platform creation project will appear 2 warehouse address point copy inside address

2. Push the code to the remote library push (push) first add a remote library to the local library

Git remote add haier Add a copy of the HTTPS address that means adding a remote library project codenamed Haier Address is https://....test.git

Push Push Code

Push Haier master means to push the local version (default to master) to a remote library codenamed Haier, which will pop up the menu to let you enter your username/password

3.ssh

To create the Shh secret key:

Ssh-keygen Press and enter the C drive. There is a. SSH folder inside the user has a id_rsa.pub file open the SSH public key inside the copy and then fill in the code cloud inside the personal information inside the public key to save

4. Team Work

You want to work with your co-workers. Start by adding your colleagues to your project in your admin account to Add Project members , developer, project member management, project management input "Lisi"
Then ask your colleague to clone a copy of the remote library to his local

git clone plus project address then your colleague has finished writing the project to push the new version of the project into the remote library.

Then you (another account) want the latest he pushes the code to use the Pull command

Git pull Origin Master

5. Branch Management Branch meaning that you can be separated from the development of the main line, and then continue to work without affecting the main line, such as you are developing a payment module, development to half of the boss asked you to do the user Management module first, then you can create

A branch to do the user Management Payment module first suspend the development of user management and then return to write the payment behind the consolidation

Command:

View branches: Git branch

Create AAA Branch: Git branch AAA

---restore content ends---

MySQL Basic ④

Related Article

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.