Skip to content

Commit a2f3e5d

Browse files
committed
Merge pull request #485 from crd/argument_types
Use correct brackets to indicate mandatory/optional parameters
2 parents 89ed85e + 4871353 commit a2f3e5d

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Notice that these remotes use a variety of protocols; we'll cover more about thi
6464
==== Adding Remote Repositories
6565

6666
We've mentioned and given some demonstrations of adding remote repositories in previous sections, but here is how to do it explicitly.(((git commands, remote)))
67-
To add a new remote Git repository as a shortname you can reference easily, run `git remote add [shortname] [url]`:
67+
To add a new remote Git repository as a shortname you can reference easily, run `git remote add <shortname> <url>`:
6868

6969
[source,console]
7070
----

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ You can see that the changes have been reverted.
121121

122122
[IMPORTANT]
123123
=====
124-
It's important to understand that `git checkout -- [file]` is a dangerous command.
124+
It's important to understand that `git checkout -- <file>` is a dangerous command.
125125
Any changes you made to that file are gone – you just copied another file over it.
126126
Don't ever use this command unless you absolutely know that you don't want the file.
127127
=====

book/03-git-branching/sections/remote-branches.asc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
(((branches, remote)))(((references, remote)))
55
Remote references are references (pointers) in your remote repositories, including branches, tags, and so on.
6-
You can get a full list of remote references explicitly with `git ls-remote (remote)`, or `git remote show (remote)` for remote branches as well as more information.
6+
You can get a full list of remote references explicitly with `git ls-remote [remote]`, or `git remote show [remote]` for remote branches as well as more information.
77
Nevertheless, a more common way is to take advantage of remote-tracking branches.
88

99
Remote-tracking branches are references to the state of remote branches.
@@ -65,7 +65,7 @@ Your local branches aren't automatically synchronized to the remotes you write t
6565
That way, you can use private branches for work you don't want to share, and push up only the topic branches you want to collaborate on.
6666

6767
If you have a branch named `serverfix` that you want to work on with others, you can push it up the same way you pushed your first branch.
68-
Run `git push (remote) (branch)`:(((git commands, push)))
68+
Run `git push <remote> <branch>`:(((git commands, push)))
6969

7070
[source,console]
7171
----

0 commit comments

Comments
 (0)