Git conflict resolution and graphical code comparison

Source: Internet
Author: User

If you do not specify a file name and do not specify a branch name, but a label, remote branch, SHA-1 value, or something like master~3, you get an anonymous branch called detached head (the detached head identity). The modified code in this state needs to be checkout into a new branch to upload to master.

If there is a conflict, you can use graphical Mergetool

Also, check the code churn for two commits, which can be compared on the command line with diff Commit1 Commit2. It's better to start a graphical comparison by entering GITK under the branch you want to compare.

https://lostechies.com/joshuaflanagan/2010/09/03/use-gitk-to-understand-git/

Git conflict resolution and graphical code comparison

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.