Git usage -- stay on a certain commit, but the code can always be updated to the last commit

Source: Internet
Author: User

GS (GIT status:

You are currently rebasing branch 'master' on '6ff7d77 '.

(All conflicts fixed: Run "Git rebase -- continue ")

When the current branch stays on the "6ff7d77" commit, a prompt is displayed after running git rebase-continue.

Error: ref refs/heads/master is at 30222e596f87fe0ec2e74a4fe152d91af495e489 but expected 1f48a9a53201ca92f03d32d12f5a5a456f9b893c

Fatal: cannot lock the ref 'refs/heads/Master '.

Cocould not move back to Refs/heads/Master

 

Run in sequence

Git Update-ref refs/heads/Master 1f48a9a53201ca92f03d32d12f5a5a456f9b893c

Rebase-continue

GS

Follow the GS prompts

(Here my prompt is: git pull)

Git usage -- stay on a certain commit, but the code can always be updated to the last commit

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.