Skip to content

Commit f3a9f26

Browse files
committed
Standardize on <remote>, not <remotename> or <remote-name> for examples
I'm a big believer in consistency.
1 parent 3094824 commit f3a9f26

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
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-name>`.(((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/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]

0 commit comments

Comments
 (0)