Git uploads code to remote repository

Source: Internet
Author: User

1: Apply git account to create warehouse, get remote warehouse address Https://github.com/****/****.git

2: Enter the project root directory by command CD: ************

3: Install the GIT environment, set environment variables

4: Execute git command git status--View all file status under current project, automatically generate Git folder

5: Execute git command git Add. --Commit all the code in the current folder to the Git local library

6: The first upload requires git config user.email and user.name.

Execute git command

git config user.email ' ********* '

git config user.name ' * * * '

6: Execute git command git commit-m ' v1.0.0 ' to describe the modified content

7: Execute git command git remote add Origin https://github.com/****/****.git--if this is the first time, set the current and which warehouse link, the link address is the address in the first step

8: Execute git command git remote-v view the current linked remote repository address

9: Execute git command git push-u origin master//upload code to remote repository

Git uploads code to remote repository

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.