Skip to content

Commit 150e900

Browse files
committed
Prepend $ to lines with command examples
1 parent ad26b05 commit 150e900

File tree

1 file changed

+23
-23
lines changed

1 file changed

+23
-23
lines changed

workbooks/github-advanced.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ These are called Branching Strategies, but are just as easily called *Team Colla
7676
* Maintaining `author` and `committer` fields
7777
* Tracing any cherry-picks with `-x` commit message metadata
7878
* `-x` metadata hyperlinked on GitHub
79-
* `git cherry` to view absent commits
79+
* `$ git cherry` to view absent commits
8080
* Rebase interactive
8181
* Can include cherry-pick
8282
* Must remember to continue the rebase
@@ -164,26 +164,26 @@ $ git config --global alias.s 'status -s'
164164
* Tag with message (defaults to annotated)
165165
* Force existing tag to new ref
166166
* Delete a tag
167-
* `git describe` to name the most recent reachable tag
167+
* `$ git describe` to name the most recent reachable tag
168168
* Tag types (reference, annotated, signed)
169169
* Deleting a tag locally
170170
* Deleting tag on a remote
171171

172172
#### Details
173173
```
174-
git tag
175-
git tag -a
176-
git tag -a -m
174+
$ git tag
175+
$ git tag -a
176+
$ git tag -a -m
177177
178-
git tag -m<message> <TAGNAME>
179-
git tag -a -m<message> <TAGNAME>
180-
git tag -s -m<message> <TAGNAME>
181-
git tag -f <TAGNAME>
182-
git tag -d <TAGNAME>
183-
git describe
184-
git describe <SHA>
185-
git tag -d 12345
186-
git push origin :<tag-name-to-delete>
178+
$ git tag -m<message> <TAGNAME>
179+
$ git tag -a -m<message> <TAGNAME>
180+
$ git tag -s -m<message> <TAGNAME>
181+
$ git tag -f <TAGNAME>
182+
$ git tag -d <TAGNAME>
183+
$ git describe
184+
$ git describe <SHA>
185+
$ git tag -d 12345
186+
$ git push origin :<tag-name-to-delete>
187187
```
188188

189189

@@ -592,8 +592,8 @@ $ git config rerere.enable true
592592
* Ability to retrieve Pull Request branches
593593

594594
```
595-
git fetch [repo-url] [source]:[destination]
596-
git config --add remote.[upstream].fetch ""+refs/pull/*/head:refs/remotes/[upstream]/pull/*""
595+
$ git fetch [repo-url] [source]:[destination]
596+
$ git config --add remote.[upstream].fetch "+refs/pull/*/head:refs/remotes/[upstream]/pull/*"
597597
```
598598

599599
## Git Notes
@@ -607,16 +607,16 @@ git config --add remote.[upstream].fetch ""+refs/pull/*/head:refs/remotes/[upstr
607607
* Manual retrieval
608608

609609
```
610-
git notes add [commit]
611-
git notes edit [commit]
610+
$ git notes add [commit]
611+
$ git notes edit [commit]
612612
613-
git notes --ref=[namespace] add [commit]
614-
git log --show-notes=[namespace]
613+
$ git notes --ref=[namespace] add [commit]
614+
$ git log --show-notes=[namespace]
615615
616-
git push [remote] refs/notes/*
617-
git push [remote] refs/notes/[namespace]
616+
$ git push [remote] refs/notes/*
617+
$ git push [remote] refs/notes/[namespace]
618618
619-
git fetch [remote] refs/notes/*:refs/notes/*
619+
$ git fetch [remote] refs/notes/*:refs/notes/*
620620
621621
```
622622

0 commit comments

Comments
 (0)