---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 ④