C # git operations for programming,

Source: Internet
Author: User

C # git operations for programming,
Summary of common git branch merge operations:

1. add your git to the cache, and then git commit-m "unit test" to the local repository.

2. Use your branch to merge git merge dev_wuwei, and then take a look.

3. resolve the conflict. vim or notpad

4. git add again. To the cache, and then git commit-m "merge conflicts" to the local repository

Undo local operation

Git reset-hard head undo all local code, and git pull pulls new code

Create Branch

$ Git checkout-B tianmaolin

The operation on the current branch is to get the code of the current branch.

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