Upload code cloud files locally


If there is no project      uploaded locally to the code cloud, establish a connection with
the code cloud: 1. Click "New Project" on the code cloud;
2. After the creation is successful, create a local folder or command mkdir + file name to
configure personal Information
1) git config user.name "yourname"
2) git config user.email email_address
3. Command cd + file directory to enter the file name
4. Command git init to initialize the git warehouse
5. Command git remote add origin + warehouse address ( Create a new project on the code cloud and click the link to clone or copy)
6. Command git pull origin master (pull down the files on the branch)
7. Drag the project file to be uploaded into the newly created folder
8. Command git add . or git add + the name of the project being dragged in (save to the cache)
9. Command git commit -m "content to be edited" (push to the local repository)
10. Command git push origin master (push to the remote repository That is, on the code cloud)

If there is a project on the remote end, establish a connection with the code cloud and upload the code:
1. Create a folder locally or command mkdir + file name
2. Command cd + file directory to enter the file name
3. git clone + code cloud warehouse address
4. Put the new code into the path of the downloaded code
5. Put the code to be uploaded
6. git add .
7. git commit -m ""
8. git push origin master

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325298492&siteId=291194637