Skip to content

Commit b1e573d

Browse files
committed
Might as well somewhat standardize on references to branch names as well.
1 parent f3a9f26 commit b1e573d

File tree

5 files changed

+6
-6
lines changed

5 files changed

+6
-6
lines changed

book/02-git-basics/sections/remotes.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ Running `git pull` generally fetches data from the server you originally cloned
123123
==== Pushing to Your Remotes
124124

125125
When you have your project at a point that you want to share, you have to push it upstream.
126-
The command for this is simple: `git push <remote> <branch-name>`.(((git commands, push)))
126+
The command for this is simple: `git push <remote> <branch>`.(((git commands, push)))
127127
If you want to push your master branch to your `origin` server (again, cloning generally sets up both of those names for you automatically), then you can run this to push any commits you've done back up to the server:
128128

129129
[source,console]

book/02-git-basics/sections/tagging.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ state without impacting any branches by performing another checkout.
225225
If you want to create a new branch to retain commits you create, you may
226226
do so (now or later) by using -b with the checkout command again. Example:
227227
228-
git checkout -b <new-branch-name>
228+
git checkout -b <new-branch>
229229
230230
HEAD is now at 99ada87... Merge pull request #89 from schacon/appendix-final
231231

book/07-git-tools/sections/stashing-cleaning.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ Saved working directory and index state WIP on master: 1b65b17 added the index f
189189

190190
If you stash some work, leave it there for a while, and continue on the branch from which you stashed the work, you may have a problem reapplying the work.
191191
If the apply tries to modify a file that you’ve since modified, you’ll get a merge conflict and will have to try to resolve it.
192-
If you want an easier way to test the stashed changes again, you can run `git stash branch <branch-name>`, which creates a new branch for you with the given `branch-name`, checks out the commit you were on when you stashed your work, reapplies your work there, and then drops the stash if it applies successfully:
192+
If you want an easier way to test the stashed changes again, you can run `git stash branch <branch>`, which creates a new branch for you with your selected branch name, checks out the commit you were on when you stashed your work, reapplies your work there, and then drops the stash if it applies successfully:
193193

194194
[source,console]
195195
----

book/09-git-and-other-scms/sections/client-svn.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -341,7 +341,7 @@ However, you can create and commit to branches in Subversion using `git svn`.
341341

342342
===== Creating a New SVN Branch
343343

344-
To create a new branch in Subversion, you run `git svn branch [branchname]`:
344+
To create a new branch in Subversion, you run `git svn branch [new-branch]`:
345345

346346
[source,console]
347347
----

book/10-git-internals/sections/refs.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,12 +63,12 @@ Now, your Git database conceptually looks something like this:
6363
.Git directory objects with branch head references included.
6464
image::images/data-model-4.png[Git directory objects with branch head references included.]
6565

66-
When you run commands like `git branch <branchname>`, Git basically runs that `update-ref` command to add the SHA-1 of the last commit of the branch you're on into whatever new reference you want to create.
66+
When you run commands like `git branch <branch>`, Git basically runs that `update-ref` command to add the SHA-1 of the last commit of the branch you're on into whatever new reference you want to create.
6767

6868
[[_the_head]]
6969
==== The HEAD
7070

71-
The question now is, when you run `git branch <branchname>`, how does Git know the SHA-1 of the last commit?
71+
The question now is, when you run `git branch <branch>`, how does Git know the SHA-1 of the last commit?
7272
The answer is the HEAD file.
7373

7474
The HEAD file is a symbolic reference to the branch you're currently on.

0 commit comments

Comments
 (0)