Skip to content

Commit ad26b05

Browse files
author
Matthew McCullough
committed
Merge pull request #112 from github/workbook-advanced-command-additions
Update Advanced Workbook
2 parents a67a0f8 + 1278aa6 commit ad26b05

File tree

1 file changed

+37
-14
lines changed

1 file changed

+37
-14
lines changed

workbooks/github-advanced.md

Lines changed: 37 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -583,6 +583,43 @@ $ gh browse
583583
$ git config rerere.enable true
584584
```
585585

586+
## Refspecs
587+
### Summary
588+
* Specification for retrieval and pushing
589+
* Implied on fetch, pull, and push
590+
* Altered by option switches like `--tags`
591+
* Stored in `.git/config`
592+
* Ability to retrieve Pull Request branches
593+
594+
```
595+
git fetch [repo-url] [source]:[destination]
596+
git config --add remote.[upstream].fetch ""+refs/pull/*/head:refs/remotes/[upstream]/pull/*""
597+
```
598+
599+
## Git Notes
600+
### Summary
601+
* Supplements commit message and description
602+
* Parallel graph
603+
* Not cryptographically as trustworthy as the commits
604+
* Displayed in the GitHub web UI
605+
* Ability to namespace
606+
* Manual publishing
607+
* Manual retrieval
608+
609+
```
610+
git notes add [commit]
611+
git notes edit [commit]
612+
613+
git notes --ref=[namespace] add [commit]
614+
git log --show-notes=[namespace]
615+
616+
git push [remote] refs/notes/*
617+
git push [remote] refs/notes/[namespace]
618+
619+
git fetch [remote] refs/notes/*:refs/notes/*
620+
621+
```
622+
586623
## Credential Caching
587624

588625
### Summary
@@ -637,17 +674,3 @@ $ gitk --all
637674
* [Listing of GUIs](http://git-scm.com/downloads/guis)
638675
* [eGit for Eclipse](http://eclipse.github.com)
639676
* [SmartGit for Windows, Mac, Linux](http://www.syntevo.com/smartgithg/)
640-
641-
## Refspecs
642-
### Summary
643-
* Specification for retrieval and pushing
644-
* Implied on fetch, pull, and push
645-
* Altered by option switches like `--tags`
646-
* Stored in `.git/config`
647-
648-
## Git Notes
649-
### Summary
650-
* Supplemental commits
651-
* Parallel graph
652-
* Not cryptographically as truthworthy as the commits
653-
* Displayed in the GitHub web UI

0 commit comments

Comments
 (0)