Skip to content

Add anchors to subsections #75

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 1, 2014
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 10 additions & 10 deletions basic/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,7 @@ <h4>
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>
Expand Down Expand Up @@ -312,7 +312,7 @@ <h4>
end
</pre>

<h4>
<h4 id="diff-head">
git diff HEAD
<small>show diff of all staged or unstaged changes</small>
</h4>
Expand Down Expand Up @@ -371,7 +371,7 @@ <h4>
end
</pre>

<h4>
<h4 id="diff-stat">
git diff --stat
<small>show summary of changes instead of a full diff</small>
</h4>
Expand Down Expand Up @@ -535,7 +535,7 @@ <h2>
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>
Expand Down Expand Up @@ -610,7 +610,7 @@ <h2>
helpful.
</p>

<h4>
<h4 id="reset-head">
git reset HEAD
<small>unstage files from index and reset pointer to HEAD</small>
</h4>
Expand Down Expand Up @@ -689,7 +689,7 @@ <h4>
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>
Expand Down Expand Up @@ -719,7 +719,7 @@ <h4>
<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>
Expand Down Expand Up @@ -868,7 +868,7 @@ <h4>
nothing to commit (working directory clean)
</pre>

<h4>
<h4 id="stash-list">
git stash list
<small>view stashes currently on the stack</small>
</h4>
Expand Down Expand Up @@ -901,7 +901,7 @@ <h4>
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>
Expand Down Expand Up @@ -934,7 +934,7 @@ <h4>
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>
Expand Down
16 changes: 8 additions & 8 deletions branching/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2>
switches you between your branches.
</p>

<h4>
<h4 id="branch-list">
git branch
<small>list your available branches</small>
</h4>
Expand All @@ -88,7 +88,7 @@ <h4>
that is created, most projects do.
</p>

<h4>
<h4 id="branch-create">
git branch (branchname)
<small>create a new branch</small>
</h4>
Expand Down Expand Up @@ -145,7 +145,7 @@ <h4>
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>
Expand All @@ -160,7 +160,7 @@ <h4>
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>
Expand Down Expand Up @@ -211,7 +211,7 @@ <h4>
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>
Expand All @@ -230,7 +230,7 @@ <h4>
* <span class="green">master</span>
</pre>

<h4>
<h4 id="branch-delete-remote">
git push (remote-name) :(branchname)
<small>delete a remote branch</small>
</h4>
Expand Down Expand Up @@ -309,7 +309,7 @@ <h2>
<span class="hl">README hello.rb</span>
</pre>

<h4>
<h4 id="merge-complex">
more complex merges
</h4>

Expand Down Expand Up @@ -410,7 +410,7 @@ <h4>
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>

Expand Down
12 changes: 6 additions & 6 deletions inspect/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ <h2>
list.
</p>

<h4>
<h4 id="log-author">
git log --author
<small>look for only commits from a specific author</small>
</h4>
Expand All @@ -71,7 +71,7 @@ <h4>
112dd51 make "mktag" a built-in
</pre>

<h4>
<h4 id="log-date">
git log --since --before
<small>filter commits by date committed</small>
</h4>
Expand All @@ -98,7 +98,7 @@ <h4>
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>
Expand Down Expand Up @@ -175,7 +175,7 @@ <h4>
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>
Expand Down Expand Up @@ -210,7 +210,7 @@ <h4>
Signed-off-by: Junio C Hamano
</pre>

<h4>
<h4 id="log-patch">
git log -p
<small>show patch introduced at each commit</small>
</h4>
Expand Down Expand Up @@ -270,7 +270,7 @@ <h4>
<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>
Expand Down
10 changes: 5 additions & 5 deletions remotes/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ <h2>
<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>
Expand All @@ -88,7 +88,7 @@ <h4>
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>
Expand Down Expand Up @@ -121,7 +121,7 @@ <h4>
about anything.
</p>

<h4>
<h4 id="remote-remove">
git remote rm
<small>removing an existing remote alias</small>
</h4>
Expand All @@ -146,7 +146,7 @@ <h4>
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>
Expand All @@ -173,7 +173,7 @@ <h4>
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>
Expand Down