Skip to content

Commit dfc7fc4

Browse files
author
Michael Friedrich
authored
Merge pull request #21 from NETWAYS/feature/list-remote-branches
Add remote branch listing
2 parents 89b1ccb + 5cff116 commit dfc7fc4

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

day1/07_Collaboration/02_Collaboration.md

+13
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@
2929
* Halts if the remote history diverged from your local history.
3030
* `git remote`
3131
* Configure/list remote repository URLs (default `origin`).
32+
* `git branch -r`
33+
* List remote branches, prefixed with the remote name.
3234
3335
~~~SECTION:handouts~~~
3436
@@ -51,6 +53,8 @@
5153
* Edit `README.md` and add a note on `git push`
5254
* Add and commit the changes
5355
* Push the changes
56+
* Bonus:
57+
* List all remote branches with `git branch -r`
5458
5559
~~~SECTION:handouts~~~
5660
@@ -73,6 +77,10 @@
7377
* Add and commit the changes
7478
* Push the changes
7579
80+
## Bonus:
81+
82+
* List all remote branches with `git branch -r`
83+
7684
!SLIDE supplemental solutions
7785
# Lab ~~~SECTION:MAJOR~~~.~~~SECTION:MINOR~~~: Proposed Solution
7886
****
@@ -99,6 +107,11 @@
99107
@@@ Sh
100108
$ git push origin master
101109
110+
### List remote branches
111+
112+
@@@ Sh
113+
$ git branch -r
114+
102115
!SLIDE smbullets
103116
# Lab ~~~SECTION:MAJOR~~~.~~~SECTION:MINOR~~~: Learn more about git fetch and git pull
104117

0 commit comments

Comments
 (0)