diff options
author | Matthew McCullough <matthew@github.com> | 2014-02-01 11:31:11 +0400 |
---|---|---|
committer | Matthew McCullough <matthew@github.com> | 2014-02-01 11:31:11 +0400 |
commit | 1d2257fa091e3aa36dd66d12413fb491c5068573 (patch) | |
tree | 46465c5c90c0ace5a8d77a5413f223774cfb2a61 | |
parent | 1f695630263b7e3c3a786da308f1b179d74718e2 (diff) | |
parent | 39327a4dc76cd14680aeeea1b3122574a1cbdbf8 (diff) |
Merge pull request #75 from simeonwillbanks/subsection-anchors
Add anchors to subsections
-rw-r--r-- | basic/index.html | 20 | ||||
-rw-r--r-- | branching/index.html | 16 | ||||
-rw-r--r-- | inspect/index.html | 12 | ||||
-rw-r--r-- | remotes/index.html | 10 |
4 files changed, 29 insertions, 29 deletions
diff --git a/basic/index.html b/basic/index.html index 6c765b5..b381b86 100644 --- a/basic/index.html +++ b/basic/index.html @@ -265,7 +265,7 @@ index d62ac43..8d15d50 100644 a good follow-up command to <code>git status</code> </p> - <h4> + <h4 id="diff-cached"> git diff --cached <small>show diff of staged changes</small> </h4> @@ -312,7 +312,7 @@ index d62ac43..8d15d50 100644 end </pre> - <h4> + <h4 id="diff-head"> git diff HEAD <small>show diff of all staged or unstaged changes</small> </h4> @@ -371,7 +371,7 @@ index 2aabb6e..2ae9ba4 100644 end </pre> - <h4> + <h4 id="diff-stat"> git diff --stat <small>show summary of changes instead of a full diff</small> </h4> @@ -535,7 +535,7 @@ Further paragraphs come after blank lines. separate change in a separate commit with a nice commit message so it is easier for them to see what you are doing and why.</p> - <h4> + <h4 id="commit-a"> git commit -a <small>automatically stage all tracked, modified files before the commit</small> </h4> @@ -610,7 +610,7 @@ Further paragraphs come after blank lines. helpful. </p> - <h4> + <h4 id="reset-head"> git reset HEAD <small>unstage files from index and reset pointer to HEAD</small> </h4> @@ -689,7 +689,7 @@ M hello.rb it defaults to <code>--mixed</code>. The other options are <code>--soft</code> and <code>--hard</code>.</p> - <h4> + <h4 id="reset-soft"> git reset --soft <small>moves HEAD to specified commit reference, index and staging are untouched</small> </h4> @@ -719,7 +719,7 @@ nothing to commit (working directory clean) <code>git commit --amend</code>, allowing you to do more work before you roll in the file changes into the same commit.</p> - <h4> + <h4 id="reset-hard"> git reset --hard <small>unstage files AND undo any changes in the working directory since last commit</small> </h4> @@ -868,7 +868,7 @@ HEAD is now at 5857ac1 hello with a flower nothing to commit (working directory clean) </pre> - <h4> + <h4 id="stash-list"> git stash list <small>view stashes currently on the stack</small> </h4> @@ -901,7 +901,7 @@ stash@{0}: WIP on master: ee2d2c6 it stops raining stash@{1}: WIP on master: 5857ac1 hello with a flower </pre> - <h4> + <h4 id="stash-apply"> git stash apply <small>grab the item from the stash list and apply to current working directory</small> </h4> @@ -934,7 +934,7 @@ no changes added to commit (use "git add" and/or "git commit -a") use <code>git stash pop</code> instead. </p> - <h4> + <h4 id="stash-drop"> git stash drop <small>remove an item from the stash list</small> </h4> diff --git a/branching/index.html b/branching/index.html index 27fd588..96112be 100644 --- a/branching/index.html +++ b/branching/index.html @@ -64,7 +64,7 @@ layout: reference switches you between your branches. </p> - <h4> + <h4 id="branch-list"> git branch <small>list your available branches</small> </h4> @@ -88,7 +88,7 @@ $ git branch that is created, most projects do. </p> - <h4> + <h4 id="branch-create"> git branch (branchname) <small>create a new branch</small> </h4> @@ -145,7 +145,7 @@ Switched to branch 'master' README hello.rb more.txt test.txt </pre> - <h4> + <h4 id="branch-last-commit"> git branch -v <small>see the last commit on each branch</small> </h4> @@ -160,7 +160,7 @@ README hello.rb more.txt test.txt testing 62a557a update test scripts </pre> - <h4> + <h4 id="branch-create-switch"> git checkout -b (branchname) <small>create and immediately switch to a branch</small> </h4> @@ -211,7 +211,7 @@ README hello.rb more.txt test.txt to switch back to a more stable context your work in progress is easy to put aside and then come back to.</p> - <h4> + <h4 id="branch-delete"> git branch -d (branchname) <small>delete a branch</small> </h4> @@ -230,7 +230,7 @@ Deleted branch testing (was 78b2670). * <span class="green">master</span> </pre> - <h4> + <h4 id="branch-delete-remote"> git push (remote-name) :(branchname) <small>delete a remote branch</small> </h4> @@ -309,7 +309,7 @@ Fast-forward <span class="hl">README hello.rb</span> </pre> - <h4> + <h4 id="merge-complex"> more complex merges </h4> @@ -410,7 +410,7 @@ HiWorld.hello and the file that had been renamed now has the 'HiWorld' class name change that was done in the other branch. Pretty cool.</p> - <h4> + <h4 id="merge-conflicts"> merge conflicts </h4> diff --git a/inspect/index.html b/inspect/index.html index cbf46f4..32945eb 100644 --- a/inspect/index.html +++ b/inspect/index.html @@ -47,7 +47,7 @@ layout: reference list. </p> - <h4> + <h4 id="log-author"> git log --author <small>look for only commits from a specific author</small> </h4> @@ -71,7 +71,7 @@ b532581 make "git unpack-file" a built-in 112dd51 make "mktag" a built-in </pre> - <h4> + <h4 id="log-date"> git log --since --before <small>filter commits by date committed</small> </h4> @@ -98,7 +98,7 @@ b6c8d2d Documentation/remote-helpers: Add invocation section 636db2c t3301: add tests to use --format="%N" </pre> - <h4> + <h4 id="log-grep"> git log --grep <small>filter commits by commit message</small> </h4> @@ -175,7 +175,7 @@ e96e400 Simon Hausmann git-p4: Fix submit user-interface. 1cd5738 Simon Hausmann Make incremental imports easier to use by storing the p4 d </pre> - <h4> + <h4 id="log-s"> git log -S <small>filter by introduced diff</small> </h4> @@ -210,7 +210,7 @@ Date: Tue Apr 13 22:31:12 2010 +0200 Signed-off-by: Junio C Hamano </pre> - <h4> + <h4 id="log-patch"> git log -p <small>show patch introduced at each commit</small> </h4> @@ -270,7 +270,7 @@ index d053cc8..9103e27 100644 <p>This is a really nice way of summarizing changes or reviewing a series of commits before merging them or releasing something.</p> - <h4> + <h4 id="log-stat"> git log --stat <small>show diffstat of changes introduced at each commit</small> </h4> diff --git a/remotes/index.html b/remotes/index.html index 7815353..94df417 100644 --- a/remotes/index.html +++ b/remotes/index.html @@ -64,7 +64,7 @@ layout: reference <code>git remote</code> command to manage this list of remote repos that you care about.</p> - <h4> + <h4 id="remote-list"> git remote <small>list your remote aliases</small> </h4> @@ -88,7 +88,7 @@ origin git@github.com:github/git-reference.git (push) push and fetch URLs for each remote in case you want to use different protocols for reads and writes.</p> - <h4> + <h4 id="remote-add"> git remote add <small>add a new remote repository of your project</small> </h4> @@ -121,7 +121,7 @@ github git@github.com:schacon/hw.git (push) about anything. </p> - <h4> + <h4 id="remote-remove"> git remote rm <small>removing an existing remote alias</small> </h4> @@ -146,7 +146,7 @@ github git@github.com:schacon/hw.git (fetch) github git@github.com:schacon/hw.git (push) </pre> - <h4> + <h4 id="remote-rename"> git remote rename [old-alias] [new-alias] <small>rename remote aliases</small> </h4> @@ -173,7 +173,7 @@ origin git@github.com:schacon/hw.git (push) 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. </p> - <h4> + <h4 id="remote-update"> git remote set-url <small>update an existing remote URL</small> </h4> |