Skip to content

Commit a3eadc8

Browse files
authored
Merge pull request #850 from rpjday/remotename
Standardize on <remote>, not <remotename> or <remote-name> for examples
2 parents 805cd5f + b1e573d commit a3eadc8

File tree

6 files changed

+9
-9
lines changed

6 files changed

+9
-9
lines changed

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ As you just saw, to get data from your remote projects, you can run:(((git comma
104104

105105
[source,console]
106106
----
107-
$ git fetch <remote-name>
107+
$ git fetch <remote>
108108
----
109109

110110
The command goes out to that remote project and pulls down all the data from that remote project that you don't have yet.
@@ -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-name> <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]
@@ -139,7 +139,7 @@ See <<_git_branching>> for more detailed information on how to push to remote se
139139
[[_inspecting_remote]]
140140
==== Inspecting a Remote
141141

142-
If you want to see more information about a particular remote, you can use the `git remote show <remote-name>` command.(((git commands, remote)))
142+
If you want to see more information about a particular remote, you can use the `git remote show <remote>` command.(((git commands, remote)))
143143
If you run this command with a particular shortname, such as `origin`, you get something like this:
144144

145145
[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/03-git-branching/sections/remote-branches.asc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ If you're on a tracking branch and type `git pull`, Git automatically knows whic
136136

137137
When you clone a repository, it generally automatically creates a `master` branch that tracks `origin/master`.
138138
However, you can set up other tracking branches if you wish – ones that track branches on other remotes, or don't track the `master` branch.
139-
The simple case is the example you just saw, running `git checkout -b <branch> <remotename>/<branch>`.
139+
The simple case is the example you just saw, running `git checkout -b <branch> <remote>/<branch>`.
140140
This is a common enough operation that Git provides the `--track` shorthand:
141141

142142
[source,console]

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)