Git uses JuJu

Source: Internet
Author: User
Tags using git
Write in front:

If you can't imagine a good title, write a good article.

This article is mainly about some of the common commands and problems encountered in using Git, as well as manuals and answers!

The title ordinal of this article does not make any sense when git is not playing well.

1.git version fallback:

A. Local version fallback:

1.>git Log

Review the submitted log for the version number.

2.>git Reset Head--hard 3m45i4

Fallback to the desired version, version number [3m45i4 ...] You don't have to finish it, Git will find it yourself.

B. Remote version fallback:

Each remote operation is inseparable from the local. So remote fallback is the version of the local fallback after push up.

>git Push Origin Master:master

C. Get the latest version before fallback (equivalent to an open version)

Similarly, direct reset:

>git Reset Head--hard eb623c

Note: This version number can be seen in the results of the previous git log command, if, unfortunately, the serial port is turned off, the version number is not visible. OK, find your own history or log.

2. Not to be continued ...

Git uses JuJu

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.