@@ -115,6 +115,8 @@ Change to it and view its contents:
115115```
116116cd ivy-collaboration
117117ls
118+ ```
119+ ```
118120CONTRIBUTORS.md LICENSE README.md
119121```
120122
@@ -126,6 +128,8 @@ The next step in the workflow isn't isn't necessary at this point, but it's some
126128Use the ` git status ` subcommand to check on the current state of the repository:
127129```
128130git status
131+ ```
132+ ```
129133On branch main
130134Your branch is up to date with 'origin/main'.
131135
@@ -176,6 +180,8 @@ is still the default `main` branch,
176180as we can see with ` git branch ` :
177181```
178182git branch
183+ ```
184+ ```
179185* main
180186 mdpiper/update-contributors
181187```
@@ -202,6 +208,8 @@ has a file, `CONTRIBUTORS.md`.
202208View the files in the repository:
203209```
204210ls
211+ ```
212+ ```
205213CONTRIBUTORS.md LICENSE README.md
206214```
207215With your favorite text editor,
@@ -215,6 +223,8 @@ Now that we've changed a file that's under version control,
215223view the changes with ` git diff ` :
216224```
217225git diff CONTRIBUTORS.md
226+ ```
227+ ``` diff
218228diff --git a/CONTRIBUTORS.md b/CONTRIBUTORS.md
219229index 23d368e..41f5c9b 100644
220230--- a/CONTRIBUTORS.md
@@ -230,6 +240,8 @@ index 23d368e..41f5c9b 100644
230240Then check on the state of the repository with ` git status ` :
231241```
232242git status
243+ ```
244+ ```
233245On branch mdpiper/update-contributors
234246Your branch is up-to-date with 'origin/main'.
235247Changes not staged for commit:
@@ -256,6 +268,8 @@ git add CONTRIBUTORS.md
256268Check the result of this command with ` git status ` :
257269```
258270git status
271+ ```
272+ ```
259273On branch mdpiper/update-contributors
260274Your branch is up-to-date with 'origin/main'.
261275Changes to be committed:
@@ -279,6 +293,8 @@ To finalize the changes to the repository,
279293we * commit* them with ` git commit ` :
280294```
281295git commit -m "Add member to contributor list"
296+ ```
297+ ```
282298[mdpiper/update-contributors 4c9565b] Add member to contributor list
283299 1 file changed, 1 insertion(+), 1 deletion(-)
284300```
@@ -291,6 +307,8 @@ It's also a convention to use imperative case.
291307Check the result with ` git status ` :
292308```
293309git status
310+ ```
311+ ```
294312On branch mdpiper/update-contributors
295313nothing to commit, working directory clean
296314```
@@ -307,6 +325,8 @@ Our local repository now differs from its remotes.
307325View the history of revisions to the repository with ` git log ` :
308326```
309327git log
328+ ```
329+ ```
310330commit 4c9565be25ca5c91d66867631112c68301250991
311331Author: Mark Piper <[email protected] > 312332Date: Mon Jun 7 15:19:32 2021 -0600
@@ -337,6 +357,8 @@ you must have write access on the remote.
337357Therefore, push the changes with:
338358```
339359git push origin mdpiper/update-contributors
360+ ```
361+ ```
340362Counting objects: 3, done.
341363Delta compression using up to 16 threads.
342364Compressing objects: 100% (3/3), done.
@@ -410,6 +432,8 @@ First,
410432use the ` git remote ` subcommand to view what remotes are being tracked by your local repository:
411433```
412434git remote -v
435+ ```
436+ ```
413437origin [email protected] :mdpiper/ivy-collaboration.git (fetch) 414438origin [email protected] :mdpiper/ivy-collaboration.git (push) 415439```
@@ -424,6 +448,8 @@ git remote add upstream
[email protected] :csdms/ivy-collaboration.git
424448Check the result with another call to ` git remote ` :
425449```
426450git remote -v
451+ ```
452+ ```
427453origin [email protected] :mdpiper/ivy-collaboration.git (fetch) 428454origin [email protected] :mdpiper/ivy-collaboration.git (push) 429455upstream [email protected] :csdms/ivy-collaboration.git (fetch) @@ -434,6 +460,8 @@ Next, switch back to the *main* branch in your local repository.
434460This is the branch into which the pull request was merged.
435461```
436462git checkout main
463+ ```
464+ ```
437465Switched to branch 'main'
438466Your branch is up-to-date with 'origin/main'.
439467```
0 commit comments