Skip to content

Commit 1d2257f

Browse files
author
Matthew McCullough
committed
Merge pull request #75 from simeonwillbanks/subsection-anchors
Add anchors to subsections
2 parents 1f69563 + 39327a4 commit 1d2257f

File tree

4 files changed

+29
-29
lines changed

4 files changed

+29
-29
lines changed

basic/index.html

+10-10
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ <h4>
265265
a good follow-up command to <code>git status</code>
266266
</p>
267267

268-
<h4>
268+
<h4 id="diff-cached">
269269
git diff --cached
270270
<small>show diff of staged changes</small>
271271
</h4>
@@ -312,7 +312,7 @@ <h4>
312312
end
313313
</pre>
314314

315-
<h4>
315+
<h4 id="diff-head">
316316
git diff HEAD
317317
<small>show diff of all staged or unstaged changes</small>
318318
</h4>
@@ -371,7 +371,7 @@ <h4>
371371
end
372372
</pre>
373373

374-
<h4>
374+
<h4 id="diff-stat">
375375
git diff --stat
376376
<small>show summary of changes instead of a full diff</small>
377377
</h4>
@@ -535,7 +535,7 @@ <h2>
535535
separate change in a separate commit with a nice commit message so it
536536
is easier for them to see what you are doing and why.</p>
537537

538-
<h4>
538+
<h4 id="commit-a">
539539
git commit -a
540540
<small>automatically stage all tracked, modified files before the commit</small>
541541
</h4>
@@ -610,7 +610,7 @@ <h2>
610610
helpful.
611611
</p>
612612

613-
<h4>
613+
<h4 id="reset-head">
614614
git reset HEAD
615615
<small>unstage files from index and reset pointer to HEAD</small>
616616
</h4>
@@ -689,7 +689,7 @@ <h4>
689689
it defaults to <code>--mixed</code>. The other options are
690690
<code>--soft</code> and <code>--hard</code>.</p>
691691

692-
<h4>
692+
<h4 id="reset-soft">
693693
git reset --soft
694694
<small>moves HEAD to specified commit reference, index and staging are untouched</small>
695695
</h4>
@@ -719,7 +719,7 @@ <h4>
719719
<code>git commit --amend</code>, allowing you to do more work
720720
before you roll in the file changes into the same commit.</p>
721721

722-
<h4>
722+
<h4 id="reset-hard">
723723
git reset --hard
724724
<small>unstage files AND undo any changes in the working directory since last commit</small>
725725
</h4>
@@ -868,7 +868,7 @@ <h4>
868868
nothing to commit (working directory clean)
869869
</pre>
870870

871-
<h4>
871+
<h4 id="stash-list">
872872
git stash list
873873
<small>view stashes currently on the stack</small>
874874
</h4>
@@ -901,7 +901,7 @@ <h4>
901901
stash@{1}: WIP on master: 5857ac1 hello with a flower
902902
</pre>
903903

904-
<h4>
904+
<h4 id="stash-apply">
905905
git stash apply
906906
<small>grab the item from the stash list and apply to current working directory</small>
907907
</h4>
@@ -934,7 +934,7 @@ <h4>
934934
use <code>git stash pop</code> instead.
935935
</p>
936936

937-
<h4>
937+
<h4 id="stash-drop">
938938
git stash drop
939939
<small>remove an item from the stash list</small>
940940
</h4>

branching/index.html

+8-8
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ <h2>
6464
switches you between your branches.
6565
</p>
6666

67-
<h4>
67+
<h4 id="branch-list">
6868
git branch
6969
<small>list your available branches</small>
7070
</h4>
@@ -88,7 +88,7 @@ <h4>
8888
that is created, most projects do.
8989
</p>
9090

91-
<h4>
91+
<h4 id="branch-create">
9292
git branch (branchname)
9393
<small>create a new branch</small>
9494
</h4>
@@ -145,7 +145,7 @@ <h4>
145145
README hello.rb more.txt test.txt
146146
</pre>
147147

148-
<h4>
148+
<h4 id="branch-last-commit">
149149
git branch -v
150150
<small>see the last commit on each branch</small>
151151
</h4>
@@ -160,7 +160,7 @@ <h4>
160160
testing 62a557a update test scripts
161161
</pre>
162162

163-
<h4>
163+
<h4 id="branch-create-switch">
164164
git checkout -b (branchname)
165165
<small>create and immediately switch to a branch</small>
166166
</h4>
@@ -211,7 +211,7 @@ <h4>
211211
to switch back to a more stable context your work in progress is easy to put
212212
aside and then come back to.</p>
213213

214-
<h4>
214+
<h4 id="branch-delete">
215215
git branch -d (branchname)
216216
<small>delete a branch</small>
217217
</h4>
@@ -230,7 +230,7 @@ <h4>
230230
* <span class="green">master</span>
231231
</pre>
232232

233-
<h4>
233+
<h4 id="branch-delete-remote">
234234
git push (remote-name) :(branchname)
235235
<small>delete a remote branch</small>
236236
</h4>
@@ -309,7 +309,7 @@ <h2>
309309
<span class="hl">README hello.rb</span>
310310
</pre>
311311

312-
<h4>
312+
<h4 id="merge-complex">
313313
more complex merges
314314
</h4>
315315

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

413-
<h4>
413+
<h4 id="merge-conflicts">
414414
merge conflicts
415415
</h4>
416416

inspect/index.html

+6-6
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ <h2>
4747
list.
4848
</p>
4949

50-
<h4>
50+
<h4 id="log-author">
5151
git log --author
5252
<small>look for only commits from a specific author</small>
5353
</h4>
@@ -71,7 +71,7 @@ <h4>
7171
112dd51 make "mktag" a built-in
7272
</pre>
7373

74-
<h4>
74+
<h4 id="log-date">
7575
git log --since --before
7676
<small>filter commits by date committed</small>
7777
</h4>
@@ -98,7 +98,7 @@ <h4>
9898
636db2c t3301: add tests to use --format="%N"
9999
</pre>
100100

101-
<h4>
101+
<h4 id="log-grep">
102102
git log --grep
103103
<small>filter commits by commit message</small>
104104
</h4>
@@ -175,7 +175,7 @@ <h4>
175175
1cd5738 Simon Hausmann Make incremental imports easier to use by storing the p4 d
176176
</pre>
177177

178-
<h4>
178+
<h4 id="log-s">
179179
git log -S
180180
<small>filter by introduced diff</small>
181181
</h4>
@@ -210,7 +210,7 @@ <h4>
210210
Signed-off-by: Junio C Hamano
211211
</pre>
212212

213-
<h4>
213+
<h4 id="log-patch">
214214
git log -p
215215
<small>show patch introduced at each commit</small>
216216
</h4>
@@ -270,7 +270,7 @@ <h4>
270270
<p>This is a really nice way of summarizing changes or reviewing a series
271271
of commits before merging them or releasing something.</p>
272272

273-
<h4>
273+
<h4 id="log-stat">
274274
git log --stat
275275
<small>show diffstat of changes introduced at each commit</small>
276276
</h4>

remotes/index.html

+5-5
Original file line numberDiff line numberDiff line change
@@ -64,7 +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>
67+
<h4 id="remote-list">
6868
git remote
6969
<small>list your remote aliases</small>
7070
</h4>
@@ -88,7 +88,7 @@ <h4>
8888
push and fetch URLs for each remote in case you want to use different
8989
protocols for reads and writes.</p>
9090

91-
<h4>
91+
<h4 id="remote-add">
9292
git remote add
9393
<small>add a new remote repository of your project</small>
9494
</h4>
@@ -121,7 +121,7 @@ <h4>
121121
about anything.
122122
</p>
123123

124-
<h4>
124+
<h4 id="remote-remove">
125125
git remote rm
126126
<small>removing an existing remote alias</small>
127127
</h4>
@@ -146,7 +146,7 @@ <h4>
146146
github [email protected]:schacon/hw.git (push)
147147
</pre>
148148

149-
<h4>
149+
<h4 id="remote-rename">
150150
git remote rename [old-alias] [new-alias]
151151
<small>rename remote aliases</small>
152152
</h4>
@@ -173,7 +173,7 @@ <h4>
173173
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.
174174
</p>
175175

176-
<h4>
176+
<h4 id="remote-update">
177177
git remote set-url
178178
<small>update an existing remote URL</small>
179179
</h4>

0 commit comments

Comments
 (0)