projects
/
git.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Some doc typo fixes
[git.git]
/
Documentation
/
tutorial.txt
diff --git
a/Documentation/tutorial.txt
b/Documentation/tutorial.txt
index
79781ad
..
554ee0a
100644
(file)
--- a/
Documentation/tutorial.txt
+++ b/
Documentation/tutorial.txt
@@
-194,7
+194,7
@@
$ git clone /home/alice/project myrepo
This creates a new directory "myrepo" containing a clone of Alice's
repository. The clone is on an equal footing with the original
This creates a new directory "myrepo" containing a clone of Alice's
repository. The clone is on an equal footing with the original
-project, posessing its own copy of the original project's history.
+project, pos
s
essing its own copy of the original project's history.
Bob then makes some changes and commits them:
Bob then makes some changes and commits them:
@@
-240,7
+240,7
@@
$ git log -p master..bob-incoming
shows a list of all the changes that Bob made since he branched from
Alice's master branch.
shows a list of all the changes that Bob made since he branched from
Alice's master branch.
-After examing those changes, and possibly fixing things, Alice can
+After examin
in
g those changes, and possibly fixing things, Alice can
pull the changes into her master branch:
-------------------------------------
pull the changes into her master branch:
-------------------------------------
@@
-357,7
+357,7
@@
$ git diff v2.5 HEAD # compare the current HEAD to v2.5
$ git branch stable v2.5 # start a new branch named "stable" based
# at v2.5
$ git reset --hard HEAD^ # reset your current branch and working
$ git branch stable v2.5 # start a new branch named "stable" based
# at v2.5
$ git reset --hard HEAD^ # reset your current branch and working
- # directory its state at HEAD^
+ # directory
to
its state at HEAD^
-------------------------------------
Be careful with that last command: in addition to losing any changes
-------------------------------------
Be careful with that last command: in addition to losing any changes
@@
-374,7
+374,7
@@
project, so
$ git grep "hello" v2.5
-------------------------------------
$ git grep "hello" v2.5
-------------------------------------
-searches for all occurences of "hello" in v2.5.
+searches for all occur
r
ences of "hello" in v2.5.
If you leave out the commit name, git grep will search any of the
files it manages in your current directory. So
If you leave out the commit name, git grep will search any of the
files it manages in your current directory. So
@@
-429,16
+429,24
@@
$ gitk --since="2 weeks ago" drivers/
-------------------------------------
allows you to browse any commits from the last 2 weeks of commits
-------------------------------------
allows you to browse any commits from the last 2 weeks of commits
-that modified files under the "drivers" directory.
+that modified files under the "drivers" directory. (Note: you can
+adjust gitk's fonts by holding down the control key while pressing
+"-" or "+".)
Finally, most commands that take filenames will optionally allow you
to precede any filename by a commit, to specify a particular version
Finally, most commands that take filenames will optionally allow you
to precede any filename by a commit, to specify a particular version
-
fo
the file:
+
of
the file:
-------------------------------------
$ git diff v2.5:Makefile HEAD:Makefile.in
-------------------------------------
-------------------------------------
$ git diff v2.5:Makefile HEAD:Makefile.in
-------------------------------------
+You can also use "git cat-file -p" to see any such file:
+
+-------------------------------------
+$ git cat-file -p v2.5:Makefile
+-------------------------------------
+
Next Steps
----------
Next Steps
----------
@@
-474,6
+482,6
@@
digressions that may be interesting at this point are:
smart enough to perform a close-to-optimal search even in the
case of complex non-linear history with lots of merged branches.
smart enough to perform a close-to-optimal search even in the
case of complex non-linear history with lots of merged branches.
- * link:everyday.html[Everday GIT with 20 Commands Or So]
+ * link:everyday.html[Ever
y
day GIT with 20 Commands Or So]
* link:cvs-migration.html[git for CVS users].
* link:cvs-migration.html[git for CVS users].