Upload local project to a remote repository

Create a new warehouse XXXX (warehouse name) 1. yards Cloud

2. Create a local file right (git bash) clip

3. Use the git init command // initialization file a local git repository .git in this case creates a local folder

4. Use the git remote add origin https://gitee.com/ your code cloud username / XXXX // add a remote repository

5. Use git pull origin master command, the warehouse pull on the cloud code to a local folder, Tip: Enter the user name and password

6. To upload files, add folders to the file you just created

7. Use git add. (. Means all) or git add + filename // Save the file to cache

8. 'newly added content description file' git commit -m // Add file description

9. Use git push origin master, will be pushed to the remote repository local repository

Guess you like

Origin blog.csdn.net/Skyline_ding/article/details/93483261