@git / git-reference / commits / 2b32865

Add anchors to subsections

e.g. /inspect/#log-s

Simeon F. Willbanks committed Jan 9, 2014 at 19:25 UTC 2b328650e926e9915f49e5afa35a99ec9a59e62d
4 files changed +29
basic/index.html
+10
@@ -266,6 +266,7 @@ index d62ac43..8d15d50 100644
266 </p>
267
268 <h4>
269 + <a name="diff-cached"></a>
270 git diff --cached
271 <small>show diff of staged changes</small>
272 </h4>
@@ -313,6 +314,7 @@ index d62ac43..8d15d50 100644
314 </pre>
315
316 <h4>
317 + <a name="diff-head"></a>
318 git diff HEAD
319 <small>show diff of all staged or unstaged changes</small>
320 </h4>
@@ -372,6 +374,7 @@ index 2aabb6e..2ae9ba4 100644
374 </pre>
375
376 <h4>
377 + <a name="diff-stat"></a>
378 git diff --stat
379 <small>show summary of changes instead of a full diff</small>
380 </h4>
@@ -536,6 +539,7 @@ Further paragraphs come after blank lines.
539 is easier for them to see what you are doing and why.</p>
540
541 <h4>
542 + <a name="commit-a"></a>
543 git commit -a
544 <small>automatically stage all tracked, modified files before the commit</small>
545 </h4>
@@ -611,6 +615,7 @@ Further paragraphs come after blank lines.
615 </p>
616
617 <h4>
618 + <a name="reset-head"></a>
619 git reset HEAD
620 <small>unstage files from index and reset pointer to HEAD</small>
621 </h4>
@@ -690,6 +695,7 @@ M hello.rb
695 <code>--soft</code> and <code>--hard</code>.</p>
696
697 <h4>
698 + <a name="reset-soft"></a>
699 git reset --soft
700 <small>moves HEAD to specified commit reference, index and staging are untouched</small>
701 </h4>
@@ -720,6 +726,7 @@ nothing to commit (working directory clean)
726 before you roll in the file changes into the same commit.</p>
727
728 <h4>
729 + <a name="reset-hard"></a>
730 git reset --hard
731 <small>unstage files AND undo any changes in the working directory since last commit</small>
732 </h4>
@@ -869,6 +876,7 @@ nothing to commit (working directory clean)
876 </pre>
877
878 <h4>
879 + <a name="stash-list"></a>
880 git stash list
881 <small>view stashes currently on the stack</small>
882 </h4>
@@ -902,6 +910,7 @@ stash@{1}: WIP on master: 5857ac1 hello with a flower
910 </pre>
911
912 <h4>
913 + <a name="stash-apply"></a>
914 git stash apply
915 <small>grab the item from the stash list and apply to current working directory</small>
916 </h4>
@@ -935,6 +944,7 @@ no changes added to commit (use "git add" and/or "git commit -a")
944 </p>
945
946 <h4>
947 + <a name="stash-drop"></a>
948 git stash drop
949 <small>remove an item from the stash list</small>
950 </h4>
branching/index.html
+8
@@ -65,6 +65,7 @@ layout: reference
65 </p>
66
67 <h4>
68 + <a name="branch-list"></a>
69 git branch
70 <small>list your available branches</small>
71 </h4>
@@ -89,6 +90,7 @@ $ git branch
90 </p>
91
92 <h4>
93 + <a name="branch-create"></a>
94 git branch (branchname)
95 <small>create a new branch</small>
96 </h4>
@@ -146,6 +148,7 @@ README hello.rb more.txt test.txt
148 </pre>
149
150 <h4>
151 + <a name="branch-last-commit"></a>
152 git branch -v
153 <small>see the last commit on each branch</small>
154 </h4>
@@ -161,6 +164,7 @@ README hello.rb more.txt test.txt
164 </pre>
165
166 <h4>
167 + <a name="branch-create-switch"></a>
168 git checkout -b (branchname)
169 <small>create and immediately switch to a branch</small>
170 </h4>
@@ -212,6 +216,7 @@ README hello.rb more.txt test.txt
216 aside and then come back to.</p>
217
218 <h4>
219 + <a name="branch-delete"></a>
220 git branch -d (branchname)
221 <small>delete a branch</small>
222 </h4>
@@ -231,6 +236,7 @@ Deleted branch testing (was 78b2670).
236 </pre>
237
238 <h4>
239 + <a name="branch-delete-remote"></a>
240 git push (remote-name) :(branchname)
241 <small>delete a remote branch</small>
242 </h4>
@@ -310,6 +316,7 @@ Fast-forward
316 </pre>
317
318 <h4>
319 + <a name="merge-complex"></a>
320 more complex merges
321 </h4>
322
@@ -411,6 +418,7 @@ HiWorld.hello
418 that was done in the other branch. Pretty cool.</p>
419
420 <h4>
421 + <a name="merge-conflicts"></a>
422 merge conflicts
423 </h4>
424
inspect/index.html
+6
@@ -48,6 +48,7 @@ layout: reference
48 </p>
49
50 <h4>
51 + <a name="log-author"></a>
52 git log --author
53 <small>look for only commits from a specific author</small>
54 </h4>
@@ -72,6 +73,7 @@ b532581 make "git unpack-file" a built-in
73 </pre>
74
75 <h4>
76 + <a name="log-date"></a>
77 git log --since --before
78 <small>filter commits by date committed</small>
79 </h4>
@@ -99,6 +101,7 @@ b6c8d2d Documentation/remote-helpers: Add invocation section
101 </pre>
102
103 <h4>
104 + <a name="log-grep"></a>
105 git log --grep
106 <small>filter commits by commit message</small>
107 </h4>
@@ -176,6 +179,7 @@ e96e400 Simon Hausmann git-p4: Fix submit user-interface.
179 </pre>
180
181 <h4>
182 + <a name="log-s"></a>
183 git log -S
184 <small>filter by introduced diff</small>
185 </h4>
@@ -211,6 +215,7 @@ Date: Tue Apr 13 22:31:12 2010 +0200
215 </pre>
216
217 <h4>
218 + <a name="log-patch"></a>
219 git log -p
220 <small>show patch introduced at each commit</small>
221 </h4>
@@ -271,6 +276,7 @@ index d053cc8..9103e27 100644
276 of commits before merging them or releasing something.</p>
277
278 <h4>
279 + <a name="log-stat"></a>
280 git log --stat
281 <small>show diffstat of changes introduced at each commit</small>
282 </h4>
remotes/index.html
+5
@@ -65,6 +65,7 @@ layout: reference
65 you care about.</p>
66
67 <h4>
68 + <a name="remote-list"></a>
69 git remote
70 <small>list your remote aliases</small>
71 </h4>
@@ -89,6 +90,7 @@ origin git@github.com:github/git-reference.git (push)
90 protocols for reads and writes.</p>
91
92 <h4>
93 + <a name="remote-add"></a>
94 git remote add
95 <small>add a new remote repository of your project</small>
96 </h4>
@@ -122,6 +124,7 @@ github git@github.com:schacon/hw.git (push)
124 </p>
125
126 <h4>
127 + <a name="remote-remove"></a>
128 git remote rm
129 <small>removing an existing remote alias</small>
130 </h4>
@@ -147,6 +150,7 @@ github git@github.com:schacon/hw.git (push)
150 </pre>
151
152 <h4>
153 + <a name="remote-rename"></a>
154 git remote rename [old-alias] [new-alias]
155 <small>rename remote aliases</small>
156 </h4>
@@ -174,6 +178,7 @@ origin git@github.com:schacon/hw.git (push)
178 </p>
179
180 <h4>
181 + <a name="remote-update"></a>
182 git remote set-url
183 <small>update an existing remote URL</small>
184 </h4>