1. Create a new project on the Code cloud
Use the Readme file to initialize the project this check to remove
After the project builds, you will see the code Cloud's Git easy to get started Tutorial:
Git Global Settings:
git config--global user.name "Your code cloud account"
git config--global user.email "Your code cloud registered mailbox"
Git Global Settings:
Here to write the code piece
Create a git warehouse without project code:
mkdir Githelloworld //Create a new Githelloworld folder, local git warehouse
CD githelloworld //Switch to project path
git init // Git initialize touch
readme.md
git add readme.md //Add readme.md file
git commit-m "First commit" // Submit and comment
git remote add origin https://git.oschina.net/your code cloud account/githelloworld.git
git push-u Origin master Upload to code cloud git remote Warehouse
upload an existing project to a git repository: previous Git project
CD Existing_git_repo //Switch to existing project directory
git remote add origin https://git.oschina.net/your code cloud account/githelloworld.git
git push-u Origin master //upload code cloud git remote Warehouse
Non git project before
Select the project folder, right-click Git init
go to project, right git Commit Tool
then cache the changes and submit
The following step may not upload, it doesn't matter, because the changes have been cached and submitted
Next right Git Bash enter command line submit code
Refresh Code cloud project, refresh browser, you can see your project submitted up