end.@@ -1,7 +1,7 @@The preceding " -1,7" is divided into three parts: the minus sign indicates the first file (that is, F1), "1" means line 1th, and "7" means 7 rows in a row. Together, it means that the following is the first file, starting from line 1th, 7 consecutive lines. Similarly, "+1,7" means that after a change, the second file becomes a row of 7 lines starting from line 1th.The third part is the concrete content of the change.A a-a +b a AIn addition to those rows that have changed, th
line to align the number of;-u,-uw or--ignore-all-space: ignores all whitespace characters;-whelp: Show Help ;--left-column: When using the-y parameter, if one row of two files is the same, the contents of the row are displayed only in the left column;--suppress-common-lines: When you use the-y parameter, only the differences are displayed. There is also a Colordiff command that identifies different places with color. Need to install firstHow 2.diff
modification is discarded, and the final file content is "Hello git".Figure 15. Git checkout--Files sampleIn fact, replication between the working directory and the repository can also be one step, as shown in 16.Figure 16. Git three transitions between States (2)Git commit-a is equivalent to
the change. In addition to those rows that have changed, the context displays 3 rows. It merges the context of two files together, so it's called "Merge format." The first flag bit of each line, empty represents no change, minus indicates the row that the file was deleted from, and the plus sign represents the new row for the second file .7. diff in git format Version management system
Common Linux commands (28th)-diff
The diff command is an important tool in linux. It is used to compare the content of files, especially files of different versions, to find the changes. Diff prints the changes of each line in the command line. The latest diff version also supports binary files. The output of the
.
5. Git checkout local_sub_local
Pull a local_sub_local branch from the local database and use git Branch* Local_sub_local
You can see the Branch currently in local_sub_local.
6. Git checkout master
Pull a master branch from the local machine and use git BranchLocal_sub_local* MasterYou can see that the current mast
The diff command is an important tool in linux. it is used to compare the content of files, especially files of different versions, to find the changes. The following are detailed instructions and examples.
The diff command is an important tool in linux. it is used to compare the content of files, especially files of different versions, to find the changes. Diff
Original URL: http://www.cnblogs.com/peida/archive/2012/12/12/2814048.htmlThe diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the
The diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the diff program is called Patch, bec
modifications in the snapshot to be submitted, You need to execute git add.
2. git status
Git status to check whether any changes have been made after your last submission.
When I demonstrated this command, I added the-s parameter to get a brief result output. If this parameter is not added, the output details are as follows:
$
Diff command is the foundation of version management tools, this article mainly explains the diff comparison several ways and git diff use skill.The following two documents, File1 and File2
$ cat File1AaAaAaAaAa$ cat File2AaAaBbAaAa
1. General format diff file1 File2$
The diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the diff program is called Patch, bec
Transferred from: http://www.cnblogs.com/peida/archive/2012/12/12/2814048.htmlThe diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the
The diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the diff program is called Patch, bec
The diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the diff program is called Patch, bec
2015-01-21 21:25:52Here first the programmer of the Big God's blog address (PS: Great god, I am not to copy oh, really afraid of their own forgotten), http://www.ccvita.com/445.html, there are many articles, I was handy search to browse the next, there are big God's weight loss photos. Hee HeeToday, when I was learning git, I said that I could define a merge and diff program to replace the default
branch masterInitial commitChanges to be committed: (use "git rm --cached
..." to unstage)new file: READMEnew file: hello.php
Git diff
Execute git diff to view details about the results of running git status.
The
Transferred from: http://www.cnblogs.com/peida/archive/2012/12/12/2814048.htmlThe diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the
The diff command is a very important tool on Linux to compare the contents of a file, especially to compare two different versions of files to find the changes. Diff prints each line's changes on the command line. The latest version of diff also supports binary files. The output of the diff program is called Patch, bec
Linux Tour (1): diff, patch and quilt (lower) 2 quilt
We can use CVs or SVN to manage all code for our own projects. But sometimes we need to use projects maintained by other developers. We need to modify some files, but we cannot directly submit code to the version management tool. It is not appropriate to use version management tools to reconstruct the entire project, because most of the Code is maintained by others, such as the Linux kernel. We jus
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.