Skip to content

Commit 6535e40

Browse files
committed
Merge pull request #4 from tfnico/more-about-log
A section about git log, and some links to help
2 parents aa48ddb + abf2248 commit 6535e40

File tree

1 file changed

+25
-2
lines changed

1 file changed

+25
-2
lines changed

index.html

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,9 +169,25 @@ <h2>tagging</h2>
169169
<p>
170170
it's recommended to create tags for software releases. this is a known concept, which also exists in SVN. You can create a new tag named <i>1.0.0</i> by executing<br />
171171
<code>git tag 1.0.0 1b2e1d63ff</code><br />
172-
the <i>1b2e1d63ff</i> stands for the first 10 characters of the commit id you want to reference with your tag. You can get the commit id with <br />
172+
the <i>1b2e1d63ff</i> stands for the first 10 characters of the commit id you want to reference with your tag. You can get the commit id by looking at the... <br />
173+
</p>
174+
</div>
175+
<a name="log"></a>
176+
<div class="scrollblock block-log">
177+
<h2>log</h2>
178+
<p>
179+
in its simplest form, you can study repository history using..
173180
<code>git log</code><br />
174-
you can also use fewer characters of the commit id, it just has to be unique.
181+
You can add a lot of parameters to make the log look like what you want. To see only the commits of a certain author:<br />
182+
<code>git log --author=bob</code><br />
183+
To see a very compressed log where each commit is one line:<br />
184+
<code>git log --pretty=oneline</code><br />
185+
Or mabe you want to see an ASCII art tree of all the branches, decorated with the names of tags and branches: <br />
186+
<code>git log --graph --oneline --decorate --all</code><br />
187+
See only which files have changed: <br />
188+
<code>git log --name-status</code><br />
189+
These are just a few of the possible parameters you can use. For more, see
190+
<code>git log --help</code><br />
175191
</p>
176192
</div>
177193
<a name="checkout-replace"></a>
@@ -225,6 +241,13 @@ <h3>guides</h3>
225241
<li><a href="http://marklodato.github.com/visual-git-guide/index-en.html">A Visual Git Guide</a></li>
226242
</ul>
227243
</p>
244+
<h3>get help</h3>
245+
<p>
246+
<ul>
247+
<li><a href="http://groups.google.com/group/git-users/">Git User Mailing List</a></li>
248+
<li><a href="http://jk.gs/git/">#git on irc.freenode.net</a></li>
249+
</ul>
250+
</p>
228251
</div>
229252
<a name="comments"></a>
230253
<div class="scrollblock block-comments">

0 commit comments

Comments
 (0)