Upload the local project to the code cloud

Upload the local project to the code cloud

1. Create a project testgit on the code cloud (the name is yours)

2. Create a folder D:/testgit locally, and then use git bash    

3. cd to the local folder D:/testgit,

4. Use the git init command to initialize a git local warehouse (project), which will create a .git folder locally

5. Use git remote add origin https://gitee.com/your code cloud username/testgit //Add remote warehouse

6. Use the git pull origin master command to pull the repository on the code cloud to the local folder

7. Add the file to be uploaded to the folder you just created

8. Use git add . or git add + filename (save the file to the cache)

9. Use git commit -m 'describe the content of the newly added file' (that is, a comment) (the file is saved to the local warehouse)

10. Use git push origin master to push the local warehouse to the remote warehouse

Guess you like

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