Skip to content

Commit 2b32865

Browse files
author
Simeon F. Willbanks
committed
Add anchors to subsections
e.g. /inspect/#log-s
1 parent e97fc7e commit 2b32865

File tree

4 files changed

+29
-0
lines changed

4 files changed

+29
-0
lines changed

basic/index.html

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,6 +266,7 @@ <h4>
266266
</p>
267267

268268
<h4>
269+
<a name="diff-cached"></a>
269270
git diff --cached
270271
<small>show diff of staged changes</small>
271272
</h4>
@@ -313,6 +314,7 @@ <h4>
313314
</pre>
314315

315316
<h4>
317+
<a name="diff-head"></a>
316318
git diff HEAD
317319
<small>show diff of all staged or unstaged changes</small>
318320
</h4>
@@ -372,6 +374,7 @@ <h4>
372374
</pre>
373375

374376
<h4>
377+
<a name="diff-stat"></a>
375378
git diff --stat
376379
<small>show summary of changes instead of a full diff</small>
377380
</h4>
@@ -536,6 +539,7 @@ <h2>
536539
is easier for them to see what you are doing and why.</p>
537540

538541
<h4>
542+
<a name="commit-a"></a>
539543
git commit -a
540544
<small>automatically stage all tracked, modified files before the commit</small>
541545
</h4>
@@ -611,6 +615,7 @@ <h2>
611615
</p>
612616

613617
<h4>
618+
<a name="reset-head"></a>
614619
git reset HEAD
615620
<small>unstage files from index and reset pointer to HEAD</small>
616621
</h4>
@@ -690,6 +695,7 @@ <h4>
690695
<code>--soft</code> and <code>--hard</code>.</p>
691696

692697
<h4>
698+
<a name="reset-soft"></a>
693699
git reset --soft
694700
<small>moves HEAD to specified commit reference, index and staging are untouched</small>
695701
</h4>
@@ -720,6 +726,7 @@ <h4>
720726
before you roll in the file changes into the same commit.</p>
721727

722728
<h4>
729+
<a name="reset-hard"></a>
723730
git reset --hard
724731
<small>unstage files AND undo any changes in the working directory since last commit</small>
725732
</h4>
@@ -869,6 +876,7 @@ <h4>
869876
</pre>
870877

871878
<h4>
879+
<a name="stash-list"></a>
872880
git stash list
873881
<small>view stashes currently on the stack</small>
874882
</h4>
@@ -902,6 +910,7 @@ <h4>
902910
</pre>
903911

904912
<h4>
913+
<a name="stash-apply"></a>
905914
git stash apply
906915
<small>grab the item from the stash list and apply to current working directory</small>
907916
</h4>
@@ -935,6 +944,7 @@ <h4>
935944
</p>
936945

937946
<h4>
947+
<a name="stash-drop"></a>
938948
git stash drop
939949
<small>remove an item from the stash list</small>
940950
</h4>

branching/index.html

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ <h2>
6565
</p>
6666

6767
<h4>
68+
<a name="branch-list"></a>
6869
git branch
6970
<small>list your available branches</small>
7071
</h4>
@@ -89,6 +90,7 @@ <h4>
8990
</p>
9091

9192
<h4>
93+
<a name="branch-create"></a>
9294
git branch (branchname)
9395
<small>create a new branch</small>
9496
</h4>
@@ -146,6 +148,7 @@ <h4>
146148
</pre>
147149

148150
<h4>
151+
<a name="branch-last-commit"></a>
149152
git branch -v
150153
<small>see the last commit on each branch</small>
151154
</h4>
@@ -161,6 +164,7 @@ <h4>
161164
</pre>
162165

163166
<h4>
167+
<a name="branch-create-switch"></a>
164168
git checkout -b (branchname)
165169
<small>create and immediately switch to a branch</small>
166170
</h4>
@@ -212,6 +216,7 @@ <h4>
212216
aside and then come back to.</p>
213217

214218
<h4>
219+
<a name="branch-delete"></a>
215220
git branch -d (branchname)
216221
<small>delete a branch</small>
217222
</h4>
@@ -231,6 +236,7 @@ <h4>
231236
</pre>
232237

233238
<h4>
239+
<a name="branch-delete-remote"></a>
234240
git push (remote-name) :(branchname)
235241
<small>delete a remote branch</small>
236242
</h4>
@@ -310,6 +316,7 @@ <h2>
310316
</pre>
311317

312318
<h4>
319+
<a name="merge-complex"></a>
313320
more complex merges
314321
</h4>
315322

@@ -411,6 +418,7 @@ <h4>
411418
that was done in the other branch. Pretty cool.</p>
412419

413420
<h4>
421+
<a name="merge-conflicts"></a>
414422
merge conflicts
415423
</h4>
416424

inspect/index.html

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,7 @@ <h2>
4848
</p>
4949

5050
<h4>
51+
<a name="log-author"></a>
5152
git log --author
5253
<small>look for only commits from a specific author</small>
5354
</h4>
@@ -72,6 +73,7 @@ <h4>
7273
</pre>
7374

7475
<h4>
76+
<a name="log-date"></a>
7577
git log --since --before
7678
<small>filter commits by date committed</small>
7779
</h4>
@@ -99,6 +101,7 @@ <h4>
99101
</pre>
100102

101103
<h4>
104+
<a name="log-grep"></a>
102105
git log --grep
103106
<small>filter commits by commit message</small>
104107
</h4>
@@ -176,6 +179,7 @@ <h4>
176179
</pre>
177180

178181
<h4>
182+
<a name="log-s"></a>
179183
git log -S
180184
<small>filter by introduced diff</small>
181185
</h4>
@@ -211,6 +215,7 @@ <h4>
211215
</pre>
212216

213217
<h4>
218+
<a name="log-patch"></a>
214219
git log -p
215220
<small>show patch introduced at each commit</small>
216221
</h4>
@@ -271,6 +276,7 @@ <h4>
271276
of commits before merging them or releasing something.</p>
272277

273278
<h4>
279+
<a name="log-stat"></a>
274280
git log --stat
275281
<small>show diffstat of changes introduced at each commit</small>
276282
</h4>

remotes/index.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ <h2>
6565
you care about.</p>
6666

6767
<h4>
68+
<a name="remote-list"></a>
6869
git remote
6970
<small>list your remote aliases</small>
7071
</h4>
@@ -89,6 +90,7 @@ <h4>
8990
protocols for reads and writes.</p>
9091

9192
<h4>
93+
<a name="remote-add"></a>
9294
git remote add
9395
<small>add a new remote repository of your project</small>
9496
</h4>
@@ -122,6 +124,7 @@ <h4>
122124
</p>
123125

124126
<h4>
127+
<a name="remote-remove"></a>
125128
git remote rm
126129
<small>removing an existing remote alias</small>
127130
</h4>
@@ -147,6 +150,7 @@ <h4>
147150
</pre>
148151

149152
<h4>
153+
<a name="remote-rename"></a>
150154
git remote rename [old-alias] [new-alias]
151155
<small>rename remote aliases</small>
152156
</h4>
@@ -174,6 +178,7 @@ <h4>
174178
</p>
175179

176180
<h4>
181+
<a name="remote-update"></a>
177182
git remote set-url
178183
<small>update an existing remote URL</small>
179184
</h4>

0 commit comments

Comments
 (0)