Git command, git command

Source: Internet
Author: User

Git command, git command

1-add git to the Project

Git init

2-query the current status. (The Red area is displayed in the workspace, and the green area is the suspended area)

Git status

3-submit to the hold Zone

Git add.

4-submit it to the local repository (comment in 'xxxx)

Git commit-m 'xxxx'

5-view the associated remote code repository (null if not)

Git remote

6-Add a remote Repository

Git remote add origin

7-submit to remote

Git push origin master

8-local tagging

Git tag-a '0. 0.1 '-m' tag'

9-local tagging

Git tag '0. 0.1'

10-view local labels

Git tag

11-submit local labels to remote

Git push -- tags

12-submit local labels to remote method 2 (recommended)

Git push origin 0.0.1

13-delete the local version

Git tag-d 0.0.1

14-delete remote versions

Git push origin: 0.0.1

Related Article

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: 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.