Skip to content

Commit 39327a4

Browse files
author
Simeon F. Willbanks
committed
Prefer less markup
1 parent 2b32865 commit 39327a4

File tree

4 files changed

+29
-58
lines changed

4 files changed

+29
-58
lines changed

basic/index.html

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -265,8 +265,7 @@ <h4>
265265
a good follow-up command to <code>git status</code>
266266
</p>
267267

268-
<h4>
269-
<a name="diff-cached"></a>
268+
<h4 id="diff-cached">
270269
git diff --cached
271270
<small>show diff of staged changes</small>
272271
</h4>
@@ -313,8 +312,7 @@ <h4>
313312
end
314313
</pre>
315314

316-
<h4>
317-
<a name="diff-head"></a>
315+
<h4 id="diff-head">
318316
git diff HEAD
319317
<small>show diff of all staged or unstaged changes</small>
320318
</h4>
@@ -373,8 +371,7 @@ <h4>
373371
end
374372
</pre>
375373

376-
<h4>
377-
<a name="diff-stat"></a>
374+
<h4 id="diff-stat">
378375
git diff --stat
379376
<small>show summary of changes instead of a full diff</small>
380377
</h4>
@@ -538,8 +535,7 @@ <h2>
538535
separate change in a separate commit with a nice commit message so it
539536
is easier for them to see what you are doing and why.</p>
540537

541-
<h4>
542-
<a name="commit-a"></a>
538+
<h4 id="commit-a">
543539
git commit -a
544540
<small>automatically stage all tracked, modified files before the commit</small>
545541
</h4>
@@ -614,8 +610,7 @@ <h2>
614610
helpful.
615611
</p>
616612

617-
<h4>
618-
<a name="reset-head"></a>
613+
<h4 id="reset-head">
619614
git reset HEAD
620615
<small>unstage files from index and reset pointer to HEAD</small>
621616
</h4>
@@ -694,8 +689,7 @@ <h4>
694689
it defaults to <code>--mixed</code>. The other options are
695690
<code>--soft</code> and <code>--hard</code>.</p>
696691

697-
<h4>
698-
<a name="reset-soft"></a>
692+
<h4 id="reset-soft">
699693
git reset --soft
700694
<small>moves HEAD to specified commit reference, index and staging are untouched</small>
701695
</h4>
@@ -725,8 +719,7 @@ <h4>
725719
<code>git commit --amend</code>, allowing you to do more work
726720
before you roll in the file changes into the same commit.</p>
727721

728-
<h4>
729-
<a name="reset-hard"></a>
722+
<h4 id="reset-hard">
730723
git reset --hard
731724
<small>unstage files AND undo any changes in the working directory since last commit</small>
732725
</h4>
@@ -875,8 +868,7 @@ <h4>
875868
nothing to commit (working directory clean)
876869
</pre>
877870

878-
<h4>
879-
<a name="stash-list"></a>
871+
<h4 id="stash-list">
880872
git stash list
881873
<small>view stashes currently on the stack</small>
882874
</h4>
@@ -909,8 +901,7 @@ <h4>
909901
stash@{1}: WIP on master: 5857ac1 hello with a flower
910902
</pre>
911903

912-
<h4>
913-
<a name="stash-apply"></a>
904+
<h4 id="stash-apply">
914905
git stash apply
915906
<small>grab the item from the stash list and apply to current working directory</small>
916907
</h4>
@@ -943,8 +934,7 @@ <h4>
943934
use <code>git stash pop</code> instead.
944935
</p>
945936

946-
<h4>
947-
<a name="stash-drop"></a>
937+
<h4 id="stash-drop">
948938
git stash drop
949939
<small>remove an item from the stash list</small>
950940
</h4>

branching/index.html

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ <h2>
6464
switches you between your branches.
6565
</p>
6666

67-
<h4>
68-
<a name="branch-list"></a>
67+
<h4 id="branch-list">
6968
git branch
7069
<small>list your available branches</small>
7170
</h4>
@@ -89,8 +88,7 @@ <h4>
8988
that is created, most projects do.
9089
</p>
9190

92-
<h4>
93-
<a name="branch-create"></a>
91+
<h4 id="branch-create">
9492
git branch (branchname)
9593
<small>create a new branch</small>
9694
</h4>
@@ -147,8 +145,7 @@ <h4>
147145
README hello.rb more.txt test.txt
148146
</pre>
149147

150-
<h4>
151-
<a name="branch-last-commit"></a>
148+
<h4 id="branch-last-commit">
152149
git branch -v
153150
<small>see the last commit on each branch</small>
154151
</h4>
@@ -163,8 +160,7 @@ <h4>
163160
testing 62a557a update test scripts
164161
</pre>
165162

166-
<h4>
167-
<a name="branch-create-switch"></a>
163+
<h4 id="branch-create-switch">
168164
git checkout -b (branchname)
169165
<small>create and immediately switch to a branch</small>
170166
</h4>
@@ -215,8 +211,7 @@ <h4>
215211
to switch back to a more stable context your work in progress is easy to put
216212
aside and then come back to.</p>
217213

218-
<h4>
219-
<a name="branch-delete"></a>
214+
<h4 id="branch-delete">
220215
git branch -d (branchname)
221216
<small>delete a branch</small>
222217
</h4>
@@ -235,8 +230,7 @@ <h4>
235230
* <span class="green">master</span>
236231
</pre>
237232

238-
<h4>
239-
<a name="branch-delete-remote"></a>
233+
<h4 id="branch-delete-remote">
240234
git push (remote-name) :(branchname)
241235
<small>delete a remote branch</small>
242236
</h4>
@@ -315,8 +309,7 @@ <h2>
315309
<span class="hl">README hello.rb</span>
316310
</pre>
317311

318-
<h4>
319-
<a name="merge-complex"></a>
312+
<h4 id="merge-complex">
320313
more complex merges
321314
</h4>
322315

@@ -417,8 +410,7 @@ <h4>
417410
and the file that had been renamed now has the 'HiWorld' class name change
418411
that was done in the other branch. Pretty cool.</p>
419412

420-
<h4>
421-
<a name="merge-conflicts"></a>
413+
<h4 id="merge-conflicts">
422414
merge conflicts
423415
</h4>
424416

inspect/index.html

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,7 @@ <h2>
4747
list.
4848
</p>
4949

50-
<h4>
51-
<a name="log-author"></a>
50+
<h4 id="log-author">
5251
git log --author
5352
<small>look for only commits from a specific author</small>
5453
</h4>
@@ -72,8 +71,7 @@ <h4>
7271
112dd51 make "mktag" a built-in
7372
</pre>
7473

75-
<h4>
76-
<a name="log-date"></a>
74+
<h4 id="log-date">
7775
git log --since --before
7876
<small>filter commits by date committed</small>
7977
</h4>
@@ -100,8 +98,7 @@ <h4>
10098
636db2c t3301: add tests to use --format="%N"
10199
</pre>
102100

103-
<h4>
104-
<a name="log-grep"></a>
101+
<h4 id="log-grep">
105102
git log --grep
106103
<small>filter commits by commit message</small>
107104
</h4>
@@ -178,8 +175,7 @@ <h4>
178175
1cd5738 Simon Hausmann Make incremental imports easier to use by storing the p4 d
179176
</pre>
180177

181-
<h4>
182-
<a name="log-s"></a>
178+
<h4 id="log-s">
183179
git log -S
184180
<small>filter by introduced diff</small>
185181
</h4>
@@ -214,8 +210,7 @@ <h4>
214210
Signed-off-by: Junio C Hamano
215211
</pre>
216212

217-
<h4>
218-
<a name="log-patch"></a>
213+
<h4 id="log-patch">
219214
git log -p
220215
<small>show patch introduced at each commit</small>
221216
</h4>
@@ -275,8 +270,7 @@ <h4>
275270
<p>This is a really nice way of summarizing changes or reviewing a series
276271
of commits before merging them or releasing something.</p>
277272

278-
<h4>
279-
<a name="log-stat"></a>
273+
<h4 id="log-stat">
280274
git log --stat
281275
<small>show diffstat of changes introduced at each commit</small>
282276
</h4>

remotes/index.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ <h2>
6464
<code>git remote</code> command to manage this list of remote repos that
6565
you care about.</p>
6666

67-
<h4>
68-
<a name="remote-list"></a>
67+
<h4 id="remote-list">
6968
git remote
7069
<small>list your remote aliases</small>
7170
</h4>
@@ -89,8 +88,7 @@ <h4>
8988
push and fetch URLs for each remote in case you want to use different
9089
protocols for reads and writes.</p>
9190

92-
<h4>
93-
<a name="remote-add"></a>
91+
<h4 id="remote-add">
9492
git remote add
9593
<small>add a new remote repository of your project</small>
9694
</h4>
@@ -123,8 +121,7 @@ <h4>
123121
about anything.
124122
</p>
125123

126-
<h4>
127-
<a name="remote-remove"></a>
124+
<h4 id="remote-remove">
128125
git remote rm
129126
<small>removing an existing remote alias</small>
130127
</h4>
@@ -149,8 +146,7 @@ <h4>
149146
github git@github.com:schacon/hw.git (push)
150147
</pre>
151148

152-
<h4>
153-
<a name="remote-rename"></a>
149+
<h4 id="remote-rename">
154150
git remote rename [old-alias] [new-alias]
155151
<small>rename remote aliases</small>
156152
</h4>
@@ -177,8 +173,7 @@ <h4>
177173
add new remotes, <code>git remote rm</code> to delete existing ones or <code>git remote rename [old-alias] [new-alias]</code> to rename them.
178174
</p>
179175

180-
<h4>
181-
<a name="remote-update"></a>
176+
<h4 id="remote-update">
182177
git remote set-url
183178
<small>update an existing remote URL</small>
184179
</h4>

0 commit comments

Comments
 (0)