X-Git-Url: https://git.verplant.org/?a=blobdiff_plain;f=Documentation%2Ftutorial.txt;h=cd0f0df591b730e28ca31a8fcf84b683a05b387f;hb=67e6e5c4e79895b34d0d47ef71e1d882f06fb6f7;hp=66680d76bd8bc196bbbfdf98923b6be6354dea0d;hpb=767e130915015f897fb87b939843b4882212574b;p=git.git diff --git a/Documentation/tutorial.txt b/Documentation/tutorial.txt index 66680d76..cd0f0df5 100644 --- a/Documentation/tutorial.txt +++ b/Documentation/tutorial.txt @@ -80,13 +80,13 @@ file; just remove it, then commit. At any point you can view the history of your changes using ------------------------------------------------ -$ git whatchanged +$ git log ------------------------------------------------ If you also want to see complete diffs at each step, use ------------------------------------------------ -$ git whatchanged -p +$ git log -p ------------------------------------------------ Managing branches @@ -216,7 +216,7 @@ This actually pulls changes from the branch in Bob's repository named "master". Alice could request a different branch by adding the name of the branch to the end of the git pull command line. -This merges Bob's changes into her repository; "git whatchanged" will +This merges Bob's changes into her repository; "git log" will now show the new commits. If Alice has made her own changes in the meantime, then Bob's changes will be merged in, and she will need to manually fix any conflicts. @@ -234,7 +234,7 @@ named bob-incoming. (Unlike git pull, git fetch just fetches a copy of Bob's line of development without doing any merging). Then ------------------------------------- -$ git whatchanged -p master..bob-incoming +$ git log -p master..bob-incoming ------------------------------------- shows a list of all the changes that Bob made since he branched from @@ -309,7 +309,7 @@ git diff HEAD^^ HEAD^ ------------------------------------- shows the difference between that previous state and the state two -commits ago. Also, HEAD~5 can be used as a shorthand for HEAD^^^^^, +commits ago. Also, HEAD~5 can be used as a shorthand for HEAD{caret}{caret}{caret}{caret}{caret}, and more generally HEAD~n can refer to the nth previous commit. Commits representing merges have more than one parent, and you can specify which parent to follow in that case; see @@ -330,13 +330,13 @@ But you may find it more useful to see the list of commits made in the experimental branch but not in the current branch, and ------------------------------------- -git whatchanged HEAD..experimental +git log HEAD..experimental ------------------------------------- will do that, just as ------------------------------------- -git whatchanged experimental..HEAD +git log experimental..HEAD ------------------------------------- will show the list of commits made on the HEAD but not included in