Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More examples for git syntax #652

Merged
merged 1 commit into from
Aug 13, 2015
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions examples/prism-git.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,32 @@ <h2>Comments</h2>
<h2>Inserted and deleted lines</h2>
<pre><code>- Some deleted line
+ Some added line</code></pre>

<h2>Diff</h2>
<pre><code>$ git diff
diff --git file.txt file.txt
index 6214953..1d54a52 100644
--- file.txt
+++ file.txt
@@ -1 +1,2 @@
-Here's my tetx file
+Here's my text file
+And this is the second line</code></pre>

<h2>Logs</h2>
<pre><code>$ git log
commit a11a14ef7e26f2ca62d4b35eac455ce636d0dc09
Author: lgiraudel
Date: Mon Feb 17 11:18:34 2014 +0100

Add of a new line

commit 87edc4ad8c71b95f6e46f736eb98b742859abd95
Author: lgiraudel
Date: Mon Feb 17 11:18:15 2014 +0100

Typo fix

commit 3102416a90c431400d2e2a14e707fb7fd6d9e06d
Author: lgiraudel
Date: Mon Feb 17 10:58:11 2014 +0100</code></pre>