Upload local projects to Code Cloud under win10

1. First create a new project on Code Cloud, as shown in the figure below
Insert picture description here
2. Create a new folder locally
Insert picture description here
3. Enter the newly created folder, click the right mouse button, and select git bash here

Then enter git init in the window. At this time, the folder will have an extra .git folder. If you can't see the folder, click the right mouse button and select "Show hidden files" to see this folder
Insert picture description here
Insert picture description here
4. Enter just now In the newly created project in Code Cloud, copy the path
Insert picture description here
5 in the box , and then return to the newly created folder locally

Continue to operate git

Enter git remote add origin + the path you just copied in Code Cloud
Insert picture description here

6. Continue to enter the git pull origin master command to pull the warehouse on the code cloud to the local folder.
Insert picture description here
7. Add the files to be uploaded to the folder just created.
Insert picture description here
8. Use git add. (. means all) or git add + File name // Save the file to the cache area
Insert picture description here
9, use git commit -m'newly added file content description' // add file description
Insert picture description here
10. Use git push origin master to push the local warehouse to the remote warehouse
Insert picture description here
11, back Code Cloud, try refreshing, you can see the new project
Insert picture description here

Guess you like

Origin blog.csdn.net/BigData_Mining/article/details/107645586