Front: Git itself with the diff tool is not good, generally consider replacing the Git diff tool with KDIFF3. GITK is accompanied by git installation, but not normal use, missing gitk since the wish package.
Operation: 1, installation qt4.7
http://download.qt.io/archive/qt/4.7/qt-everywhere-opensource-src-4.7.3.tar.gz
In order to find a free alternative to beyondcompare, finally, after practical, find some of the following:1.diffuseFeel: This software is sufficient if you are only comparing files of two text classes.After installation, right-click on the file, the "Open with Diff Merge Tool" will appear, but only open the file directly, and do not like Beyondcompare, easy to select two files, then open the software for comparison.In general, however, the effect can also be:Diffuse (recommended with thunder do
I. PrefaceThis article was originally part of the 3rd development toolbox system, but some of our colleagues encountered a lot of software version and dependency problems when installing tortoisehg and kdiff3, resulting in a failure to install them smoothly. Therefore, I would like to share in advance the complete process of installing these software and hope to help other students.
II. Environment and preparation1. Operating System: redhat5/centos52.
File comparison, folder comparison-Vimdiff,beyond Compare, compare Suite, WINMERGE,KDIFF3 There is a project of the source package needs to compare, 400M above, this will find a good tool. If a single file can be used Vimdiff ', the code is highlighted, very good, for such a large package, it seems to be inadequate. Looked up several tools, improvised contrast.
Beyond Compare,Shareware, 30-day free trial, powerful.
Compare Suite,
Reason: The small turtle (TortoiseSVN) cannot be used under Linux, idea cannot use the SVN merge skeleton code below, in order to solve each merge code to start the virtual machine, and can be as convenient as the small turtle (TortoiseSVN).Method:1, install KDIFF3. Cross-system and compare popular code diff tools.sudo apt-get install KDIFF32. Install SVN tools.1) sudo apt-get install subversion subversion-tools 2) downgrade Install SVN (1.7), refer
When the blogger helped the company continue to maintain old projects hosted on VSS, he found that the comparison tool provided by VSS was very bad, so try not to replace the file difference comparison tool with the powerful kdiff3 on VSS! If you share the same feelings with me, you can configure VSS according to the settings below to free me from this!
:
With the above settings, we can remove the original chicken ribs comparison tool!
At
vimdiff
Git can understand the output information of kdiff3, tkdiff, meld, xxdiff, emerge, vimdiff, gvimdiff, ecmerge, and opendiff merging tools. Of course, you can also specify to use your own developed tools. For details, refer to chapter 7.View configuration information
To check the existing configuration information, you can usegit config --listCommand:
$ git
Installation and Configuration
First thing first, you can easily install Git on all 3 mainstream OS, Windows, Linux, OSX.Get Windows Installer on https://git-for-windows.github.io/.Note in Windows, the official Git tool is called "Git for Windows" as well as msysgit. They ' re aimed at the same thing.
profile is the one in your home directory, and all of your projects will default to the user information configured here. If you want to use a different name or email in a particular project, just remove the --global option to reconfigure it, and the new settings are saved in the current project's .git/config file.Text EditorThe next step is to set the text editor to use by default. Git will automatically
operating system is used, which can typically be Vi or Vim. If you have other preferences, such as Emacs, you can reset them:1 $ git config--global core.editor emacsVariance analysis ToolThere is also a more common use of the diff analysis tool when resolving merge conflicts. For example, to use Vimdiff:1 $ git config--global merge.tool vimdiffGit can understand the output of
authorization. )
Conflict Resolution
Git pull = fetch + Merge
Auto Merge
Different files
Non-peers of the same file
File Movement Modification of file contents
Automatic merge succeeded, but there was a logical conflict: Test!!!
Conflict Resolution:
Kdiff3
Tree clash
Merge strategy: git
Related articles:For a way to verify that an SSH configuration exists and generate an SSH key, refer to the article: Git usage manual: Generate SSH key for SSH key usage and public key in GitHub, Gitlab configuration, please refer to article: Git usage manual: Use SSH key and configure SSH Key public key on the concepts and relationships of Git workspaces, regist
GIT provides clients for Linux, Windows, OSX, and this section takes Windows as an example of basic installation and configuration.Tools Required: Msysgit, KDIFF3.
Get Windows Installer on https://git-for-windows.github.io/
Get Merge tool KDIFF3 on Http://sourceforge.net/projects/
your default text editor, and Git will use the text editor when you need to enter some messages. By default, Git uses your system's default editor, which is usually either VI or VIM. If you want to use a different text editor, such as Emacs, you can do the following:
The code is as follows:
$ git config--global core.editor emacs
2.3 Your comparison tool (Your
Git's first use Git common command query Git push Git pull before introducing installation and simple use, let's take a look at The introduction in Baidu Encyclopedia: ---------------------------------- Git --- The stupid content tracker, dummies content tracker. In Linux, we will introduce
users User1 and User2 created from the share repository clone content. and modify the second line of the file Conflict_test file at the same time, after User1 executes the push, the user2 execution push will take the following scenario:
Figure 1
In the log message, you are prompted to use Git pull, and then try git pull to see the result:
Figure 2
The information obtained is: "Automatic merge failed, need
number before the rollback can be found by command (all used version number), and then git reset .Q: How to solve the conflict?When two branches are merged (usually git pull), they may encounter conflicts, while the modified files enter the Unmerged state and need to resolve the conflict.The quickest way.Most of the time, the quickest way to resolve conflicts is to use the current HEAD version (ours), or
One, git introduction what is git? Git is an open source Distributed version Control tool in all of the world's distributed version control tools, Git is the fastest, simplest, and most popular git origin author is the father of Linux: Linus Benedict Torvalds developed
) + git Extensions + git Source control Provider
--This combination can completely solve Chinese file problems (including Chinese filename, directory name, and normal display in GitHub).
1 Install Cygwin command line tool
Installation tutorials See http://gotgit.github.com/gotgithub/10-appendix/030-install-on-windows-cygwin.html
Software to install during installation:
Features:
1. You can quickly switch between project branches.
2. roll back the version of a branch.
3. You do not need to modify the configuration file (defined for projects) for each branch switch)
4. You do not need to create/switch virtual directories/domain names because they are all in the same directory.
5. Are these attractive to you? If you like it, join in.
What is git?
Git is
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.