There are a lot of people using GitHub, and there are many people who use the code cloud today to talk about how the code cloud and the code cloud are used.
The code cloud is a domestic git hosting service, and the code cloud also offers a free git repository compared to GitHub. In addition, it integrates the functions of code quality inspection, project demonstration and so on. For team collaboration development, the code cloud also provides project management, code hosting, document management Services, 5 people below the small team for free.
Let's talk about how he used it today.
1. Enter the code Cloud official website, register the Code cloud account, enter my code cloud, below you can create the project we want 2. When you open a project after you've created it, you'll see the project you just created 3. Then we're going to upload the project (Open command)
- GIT init project initialization
- git Add. Add a file (remember that there are spaces behind add)
- Git status pushes the local files you need into the cache (auxiliary commands, view your status, red for the workspace, green for the buffer)
- git commit-m "file name" from the local warehouse to the local warehouse
- Git remote add origin (Origin is warehouse name) + address (address is the address of your new project) create a local warehouse
- git remote to see if the local repository was created successfully
- Git pull--rebase Origin master pulls your offline stuff back to the local repository (aux)
- Git push origin (warehouse name) master pushes the remote repository to the line
4The following errors may be encountered during the Operation
As long as the following actions can
$ Git pull Origin master--allow-unrelated-histories
5. So even if the upload is successful
How to upload the code cloud (using the code cloud)