Put the project on the Code cloud and project management through Git __git

Source: Internet
Author: User
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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.