0% found this document useful (0 votes)
13 views25 pages

1.3 - More Git - Environment Variables RIT

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
13 views25 pages

1.3 - More Git - Environment Variables RIT

Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 25

GCIS-123

Software Development & Problem Solving


Unit 1.3: More Git, &
Environment Variables
● Git not only keeps track of the last version
of the files that you committed to your
Git Log repository, it keeps track of every version
of every file that your have ever
C:\Users\Hermione\SoftDevI> git log > log.txt
committed to your repository.
C:\Users\Hermione\SoftDevI> cat log.txt ○ This does not include files that you have
commit modified in your local workspace but have
36a2f6daeeda7044afcf73fe23475d62b93dca11 not committed to your local repository.
Author: Hermione Granger <[email protected]> ○ The remote repository doesn’t keep track
Date: Mon Jun 8 16:50:41 2020 -0400 of the version of any files that have not
been pushed.
It’s Wingardium LevioSAH.
● The git log command will display a
commit history of the versions of your repository.
89cab2d26b20a68dbd4f54ca362bb5a0e4a81080 ● Each version in the Git log includes:
Merge: b4dcf70 f7a567c ○ A unique commit hash.
Author: Ron Weasley <[email protected]> ○ The author’s name and email.
Date: Mon Jun 8 16:49:53 2020 -0400 ○ The time and date that the version was
created.
Wingardium LeviOHsa!
○ The comment entered with the commit.
You can also redirect the output from git log
This is one place that good comments can
to a file, and then use the cat command to
be really useful.
display the contents of the file in a command
● If the Git log is too long to fit in your
prompt. The output will not pause.
command prompt window, it will pause 2
and wait for a key press before continuing.
1.3.
3 Git Log & Cat
A Git Log can be used to see the history of changes that
you and your team have made to a repository. The log
C:\Users\Hermione\SoftDevI> git log > log.txt includes a timestamp, a commit hash, and the
C:\Users\Hermione\SoftDevI> cat log.txt
commit 36a2f6daeeda7044afcf73fe23475d62b93dca11
Author: Hermione Granger <[email protected]>
comment for every commit to the repository. Try it out
now.
Date: Mon Jun 8 16:50:41 2020 -0400
● If necessary, launch a command prompt and navigate to your
It’s Wingardium LevioSAH.
directory for today’s activities.
commit 89cab2d26b20a68dbd4f54ca362bb5a0e4a81080
Merge: b4dcf70 f7a567c
Author: Ron Weasley <[email protected]>
● Run git log and examine the results.
Date: Mon Jun 8 16:49:53 2020 -0400
● Run git log again, but redirect the output to a file named
Wingardium LeviOHsa!
git_log.txt.
○ You can redirect output to a file using the > operator, e.g. ls >
list.txt will redirect the output of the ls command into a file
Part of your grade on each named "list.txt".
assignment will be based on how
● Use cat to display the contents of the git_log.txt file and
well you practice the Git workflow.
verify that it contains your Git log.
● Use the Git workflow to add the git_log.txt file to your
Your graders will use git log to
see how often you commit and repository.
push to your repository. 3
GitHub History ● GitHub provides an alternate mechanism
for looking at the history of a repository.
○ In fact, it provides more than one!
● You can see the number of commits in
the top right corner of the repository.
○ Clicking this will open GitHub's equivalent
of the Git log.
○ Clicking on the shortened commit hash
next to any of the commits will open the
commit and show the files that were
added, modified, or removed in the
commit.
● Alternatively, you can see the history for
an individual file by opening the file and
clicking the History option at the top
right.
○ Clicking the commit hash next to any
version of the file will open that version of
the file and show lines that have been
added, modified, or removed.
GitHub provides several different views of the ● You can view several different graphs of
history of changes to a repository. the activity in the repository as well. 4
○ Click Insights in the menu, then choose
1.3.
4 GitHub History
Examining the history of changes to a repository can help
you to understand how the repository has changed over
time. It can also help you find past versions of the
repository to view and/or recover the files.
● If you have not done so recently, practice the Git workflow to push
the latest versions of your files to your repository.
○ You should be doing this after every activity!
● Open a browser window and navigate to any one of your GitHub
repositories.
○ You may choose one of the repositories you used this week, or another
repository that you have access to.
○ If you lost the URL, you can always click on the GitHub
Classroom Invitation on MyCourses.
● Use the number of commits to open the commit history for the
repository.
○ Take a screenshot and save it to your Unit 1.3 repository.
● Open an individual file and view the history.
5
○ Take a screenshot and save it.
● Every entry in the output of git log includes a
unique commit hash. Git Checkout
○ The commit hash is a 40-character hexadecimal
C:\Users\Hermione\SoftDevI> git log
string. commit 89cab2d26b20a68dbd4f54ca362bb5a0e4a81080
○ e.g. Merge: b4dcf70 f7a567c
b4dcf708d4cd708f4ce05f26b4a4da3d46d06961 Author: Ron Weasley <[email protected]>
Date: Mon Jun 8 16:49:53 2020 -0400
● The commit hash is generated by Git each time
Nuh uh...
the repository is changed (files added, modified,
deleted, etc.). commit 36a2f6daeeda7044afcf73fe23475d62b93dca11
Author: Hermione Granger <[email protected]>
● Because it is unique for each version in the Date: Mon Jun 8 16:50:41 2020 -0400
repository’s version history, it can be used to It’s Wingardium LevioSAH.
uniquely identify one specific version.
C:\Users\Hermione\SoftDevI> git checkout
● One way that the hash can be used is to revert 36a2f6daeeda7044afcf73 fe23475d62b93dca11 spell.txt
the entire repository or even a specific file to a
previous version.
○ The git checkout command can be used to do You will use git log to list the version history of
this. your repository and then copy the commit hash
○ e.g. git checkout <hash> [filename] where for the version to which you would like to revert.
<hash> is the hash for the specific version, and
[filename] is an optional specific file to revert.
● After using git checkout, you can use the Then you will paste it into your git checkout.
6
standard Git workflow to continue editing the
1.3.
5 Git Checkout
In the event that you make a mistake or just want to undo
some recent changes, the git checkout command can be
used to restore a file to a previous version. Try it out now.
● If necessary, run a command prompt and navigate to your repository.
● Use Notepad to open your git_log.txt file and delete the contents.
● Use cat to verify that the file is now empty.
● Use the Git workflow to push the empty file to your repository.
● Use git log to show the version history for your repository and copy
the penultimate commit hash.
● Use git checkout to check out the git_log.txt corresponding with
that version, for example:
○ git checkout ade14e00980ec3235a9608cdf4974b5ef74e6399 git_log.txt
● Use cat to verify that the file has been restored.

7
A Detached HEAD?!
● If you make a mistake when performing a A “detached HEAD” state can happen if you use git
checkout, you may end up in a “detached checkout with a hash but without specifying a
HEAD” state. But what does this mean? filename.
● First, HEAD is just a shortcut for the most
recent version of your repository. C:\Users\Hermione\SoftDevI> git checkout ade14e0
Note: switching to
○ git checkout HEAD will always revert a file to 'ade14e00980ec3235a9608cdf4974b5ef74e6399'.
the last version that you committed.
You are in 'detached HEAD' state. You can look around,
● Git includes support for branches. A branch make experimental changes and commit them, and you can
is a virtual copy of your repository where you discard any commits you make in this state without
impacting any branches by switching back to a branch.
can make independent changes without
C:\Users\Hermione\SoftDevI> git checkout master
affecting the files in the other branches. Previous HEAD position was ade14e0 updated spell.txt file
○ The default branch is called master. Switched to branch 'master'
○ We won’t be doing anything with branches this Your branch is up to date with 'origin/master'.
C:\Users\Hermione\SoftDevI> _
semester.
● A “detached HEAD” state means that your The fix is to check out the master branch. This will
local repository is disconnected from its reattach your local repository.
8
branch on the remote repository.
1.3.
6 Detach and Reattach Your
HEAD
Using git checkout without a specific filename will cause
your repository to be in a "detached HEAD" state. Thankfully,
it is easy to fix by checking out the master branch. Force it to
happen now, and then fix it.
● If necessary, launch a new command prompt and navigate to your
repository.
● Run a git log to see the version history.
○ Note that the top entry in the log is labeled HEAD -> master, meaning that
it is the most recent version of the master branch.
● Use git checkout with one of the previous versions of your
repository. Do not specify a file to check out.
○ You should see the “detached HEAD” message.
● Use git checkout master to reconnect your local repository with the
master branch.

9
● Sometimes you would like to discard local
changes that you made to a file.
○ You break some code that was working.
Git Restore ○ You accidentally delete something
important.
○ You just want to start over.
A git restore can be used to revert back to ○ etc.
the most recently committed version of a file, ● The git restore <FILENAME> command
and even restore files that have been deleted.
will replace the working copy of a file with
the last version that was committed to
C:\Users\Hermione\SoftDevI> rm primes.txt
C:\Users\Hermione\SoftDevI> cat primes.txt the local repository.
cat : Cannot find path 'primes.txt' because it does not ○ Instead of a specific filename you may also
exist.
C:\Users\Hermione\SoftDevI> git restore primes.txt use wildcards.
C:\Users\Hermione\SoftDevI> cat primes.txt ○ For example, you could use *.py to restore
2 3 5 7 11 13 17 19 23 29
C:\Users\Hermione\SoftDevI> _ all of your Python files.
● Using git restore is essentially identical
It should be used with caution, though! Once a to using git checkout HEAD
file is restored any changes are permanently <FILENAME>.
lost! Make sure that you really want to restore a ○ In both cases the HEAD version of the file
file before you do it! replaces the working copy.
○ Arguably, git restore is a little easier to
use. 10
1.3.
7
Git Restore
The git restore command can be used to revert a modified
(or even deleted!) file to the version that was most recently
committed to the local repository. This is a convenient way to
undo any changes you made since the last commit. Try it
now.
● If necessary, run a command prompt and navigate to your repository.
● Use Notepad to open your git_log.txt file and delete the contents.
● Use cat to verify that the file is now empty.
● Use git restore to restore the git_log.txt to the HEAD version.
○ e.g. git restore git_log.txt
● Use cat to verify that the file has been restored.

11
1.3.
7 Creating a Conflict
Clone another copy of your repository and then make
conflicting edits to the same text file in two different places.
● If necessary, start a command prompt and navigate to your repository.
● Use Notepad to create a file called lyrics.txt that contains the lyrics
from one of your favorite songs (feel free to use Google).
● Use the Git workflow to push the new file to your repository.
● Create a new directory under Unit01 named temp and change into it.
● Clone your repository into this directory.
○ e.g. git clone https://www.github.com/SoftDevI/assignment-03-hjg
● Edit the lyrics.txt file to add your name to the first line of the file,
and use the Git workflow to push it to your remote repository.
● Change back into the other copy of your repository. Do not pull.
● Edit the lyrics.txt file to add today’s date to the first line of the file,
and use the Git workflow to push it to your remote repository.
○ What happens?
○ What do you see when you run a git status check?
12
● Throughout this semester you may do some
work on a computer in the classroom, and then
clone your repository to continue working on a
Merge Conflicts
different computer, e.g. your laptop or a
desktop in your dorm. When you execute a git pull, Git will notify
○ In fact, you may move back and forth several
you if it can’t automatically merge the local copy
times.
of a file with the remote version.
● This means that you will have multiple copies
C:\Users\Hermione\SoftDevI> git pull
of the same GitHub project in more than one remote: Enumerating
objects: 6, done.
location. remote: Counting objects: 100% (6/6), done.
○ If you push a change from one, you will need to remote: Compressing objects: 100% (1/1), done.
pull the change to the other. remote: Total 4 (delta 3), reused 4 (delta 3), pack-
reused 0
○ In fact, if your local repository is not up to date Unpacking objects: 100% (4/4), 460 bytes | 51.00 KiB/s,
with the remote repository Git will require you to done.
From https://github.com/SoftDevI/assignment-03-hjg
synchronize with a git pull before you can
59a676c..fbb9adf master -> origin/master
push. Auto-merging lyrics.txt
● Having more than one copy of your repository CONFLICT (content): Merge conflict in lyrics.txt
Automatic merge failed; fix conflicts and then commit the
in different places means that you may end up result.
This will require you to solve the merge conflict
making different changes to the same file.
manually, and then commit and push the
● Most of the time Git transparently merges merged file to the repository.
changes together to create a version of the file
13 with all of the changes.

Resolving Merge Conflicts Manually
● After executing a git pull, Git will notify you
Local changes...
if there are any changes that cannot be
<<<<<<< HEAD
merged automatically. Saturday May 2nd, 1998
● A version of the file will have been created =======
Hermione Granger
with all of the changes separated by special >>>>>>> fbb9adfa5eb87b0705aa1d3027fc2604794094e2
Double, double, toil and trouble.
characters. Fire burn and cauldron bubble. ...remote
○ <<<<<<< HEAD indicates the beginning of the Double, double, toil and trouble. changes.
changes in the HEAD version in the local Something wicked this way comes!

repository. Eye of newt and toe of frog,


○ ======= is the delimiter between the remote Wool of bat and tongue of dog,
Adder's fork and blind-worm's sting,
and local changes, which start on the next line. Lizard's leg and owlet's wing.
○ >>>>>>> <HASH> indicates the end of the
changes in version of the file in the remote Double, double, toil and trouble.
Fire burn and cauldron bubble.
repository. Double, double, toil and trouble.
○ There may be multiple conflicts! Something wicked this way comes!
● For each conflict you will need to:
○ Choose which changes to keep (maybe both!)
○ Delete all of the other unwanted text
(including the special characters).
○ 14
Use the Git workflow to push the merged file
1.3.
8

Resolve a Merge
Saturday May 2nd, 1998

Hermione
Conflict
Resolve the merge conflict in your file and then push the
merged file to your repository.
Granger
● If necessary, launch a command prompt and navigate to your
repository.
○ Not the temporary repository that you created to cause the conflict.
● Synchronize your local repository with a git pull.
○ You should see that the lyrics.txt file could not be merged.
● Use Notepad to open the file.
● Edit the file so that both changes are included (your name and
today’s date).
○ Keep both sets of changes.
Hermione Granger
Saturday May 2nd, ○ Remove any unwanted text, e.g. special characters.
1998 ● Use the Git workflow to push the merged file to your repository.
15
Environment Variables
Environment variables are stored on a virtual drive
● Environment variables are important named env that is accessible from the command
values that affect how the programs and prompt.
operating system on a computer
behave. You may display the environment variables on a
● Every environment variable has a computer by listing the contents of the virtual
unique name and value. Some drive, e.g. ls env:
important variables include:
○ PATH - determines where your operating You may display an individual environment
system will search for executable variable using $env:<NAME> where <NAME> is
applications or scripts. the name of the variable, e.g. $env:PATH
○ PATHEXT - determines which file
extensions are considered executable. You may also redirect output to a file using the >
○ HOMEPATH - the path to the user operator after any command. For example, if you
directory. wanted to store the list of files in C:\ in a file
named “files.txt”: ls C:\ > files.txt
16
1.3.
8
Displaying
Environment Variables
Listing the environment variables on your computer can
PS C:\Users\ron> ls env:

Name
----
ALLUSERSPROFILE
APPDATA
Value
-----
C:\ProgramData
C:\Users\ron\AppData\Roaming
I a quick way to see the variables that have been set
be
CommonProgramFiles
CommonProgramFiles(x86)
CommonProgramW6432
COMPUTERNAME
C:\Program Files\Common Files
C:\Program Files (x86)\Common Files
C:\Program Files\Common Files
THEBURROW
and/or confirm that a variable has been set to the right
value. Try it now.
ComSpec C:\Windows\system32\cmd.exe
DriverData C:\Windows\System32\Drivers\DriverData


GIT_SSH C:\Program Files\PuTTY\plink.exe
HOMEDRIVE
HOMEPATH
LOCALAPPDATA
C:
\Users\ron
C:\Users\ron\AppData\Local
If necessary, launch a command prompt and navigate to your
Day02 directory.
LOGONSERVER \\THEBURROW
NAME Ron
NUMBER_OF_PROCESSORS 16
OneDrive C:\Users\ron\OneDrive
OneDriveConsumer
OS
Path
C:\Users\ron\OneDrive
Windows_NT
C:\Program Files (x86)\Razer\
● Recall that the gdr command can be used to list the drives on a
ChromaBroadcast\...
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;....
PROCESSOR_ARCHITECTURE AMD64
computer. Use it and find the virtual drive named “env” in the list.

PROCESSOR_IDENTIFIER Intel64 Family 6 Model 158 Stepping 13,
Genui...
PROCESSOR_LEVEL
PROCESSOR_REVISION
6
9e0d
List the contents of the drive to display all of the environment
variables on your computer.
ProgramData C:\ProgramData
ProgramFiles C:\Program Files
ProgramFiles(x86) C:\Program Files (x86)
ProgramW6432 C:\Program Files
PSModulePath
PUBLIC
SESSIONNAME
C:\Users\ron\OneDrive\Documents\WindowsPowe...
C:\Users\Public
Console
● List the variables again, but this time redirect the output to a file
SystemDrive C:
SystemRoot
TEMP
TMP
C:\Windows
C:\Users\ron\AppData\Local\Temp
C:\Users\ron\AppData\Local\Temp
named “envars.txt”.

USERDOMAIN THEBURROW
USERDOMAIN_ROAMINGPROFILE
USERNAME
USERPROFILE
THEBURROW
ron
C:\Users\ron
Use the Git workflow to upload the new file to your remote
repository.
windir C:\Windows

PS C:\Users\ron> _ 17
○ status, add, commit, push.
● While it is possible to permanently set
environment variables from the command
Editing Environment
line, it is fairly convoluted. Variables
● It is far easier to use the environment
variables editor provided by Windows to
add or change environment variables.
● There are two different categories of
environment variables.
○ User variables are environment variables
specific to your user account.
○ System variables are system-wide and
apply to any account logged into the
computer.
● Depending on your permissions, you may
only be able to change the user variables.
● Launching the editor is not very intuitive:
○ Press the Windows key. Changes made to environment variables through
○ Type “environment” into the search field. the editor are “sticky” and system-wide.
○ Use the arrows keys to choose Edit
environment variables for your
They will not apply to any currently opened
account.
command prompts; you will need to restart
● From here you can create, edit, or
18
PowerShell to see the changes.
delete environment variables.
1.3.
9 Add a New Environment
Variable II
You may need to view, create, or modify the environment
variables on your computer to change the way programs
behave.
● Launch the Environment Variables editor.
● In the User variables section, click the New… button.
● Create a new environment variable named NAME with your first name
as the value.

● If necessary, close any open command prompts and then launch a


new prompt.
● Display the environment variables. You should see your new
environment variable in the list.
19
● It is possible to create new environment
Creating New variables (or change existing ones) from the
Environment Variables command prompt using the command
$env:<NAME> = '<VALUE>'
Trying to display an environment variable that ○ <NAME> is the name of the variable to create
doesn’t exist will no produce any output. or change.
○ '<VALUE>' is the value. The value must be
enclosed in either single (') or double (")
PS C:\users\ron> $env:PET
quotes.
PS C:\users\ron> _
● The scope of environment variables created
this way is restricted to the command
A new environment variable can be created
prompt through which they are created.
using $env to set the value (in quotes).
○ If another command prompt is launched, the
changes will not be present.
PS C:\users\ron> $env:PET = 'SCABBERS'
○ Once the command prompt is closed, the
PS C:\users\ron> $env:PET
changes are lost.
SCABBERS
PS C:\users\ron> _ ● Creating environment variables in this way
can be useful for a number of reasons:
Existing environment variables can also be ○ Testing changes to important variables like
changed using $env. PATH.
○ A temporary change is needed, e.g. while
running a script.
PS C:\users\ron> $env:HOMEPATH = 'C:\temp'
○ Creating/changing variables based on user
PS C:\users\ron> _ 20
input.
○ etc.
1.2.1
2
Add a New
Environment Variable I
PS C:\Users\ron> ls env:

Name
----
ALLUSERSPROFILE
Value
-----
C:\ProgramData
Use the command prompt to create a new environment
APPDATA C:\Users\ron\AppData\Roaming

variable.
CommonProgramFiles C:\Program Files\Common Files
CommonProgramFiles(x86) C:\Program Files (x86)\Common Files
CommonProgramW6432 C:\Program Files\Common Files
COMPUTERNAME
ComSpec
DriverData
THEBURROW
C:\Windows\system32\cmd.exe
C:\Windows\System32\Drivers\DriverData
Create a new environment variable and display it.
● If necessary, launch a command prompt.
GIT_SSH C:\Program Files\PuTTY\plink.exe
HOMEDRIVE C:
HOMEPATH \Users\ron
LOCALAPPDATA C:\Users\ron\AppData\Local
LOGONSERVER
NAME
NUMBER_OF_PROCESSORS
\\THEBURROW
Ron
16
● Create a new environment variable NAME and assign it a value of
OneDrive C:\Users\ron\OneDrive
OneDriveConsumer
OS
Path
C:\Users\ron\OneDrive
Windows_NT
C:\Program Files (x86)\Razer\
your first name.
● Display the new environment variable.
ChromaBroadcast\...
PATHEXT
.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;....
PROCESSOR_ARCHITECTURE AMD64

● Close the command prompt and launch a new one. Display all of
PROCESSOR_IDENTIFIER Intel64 Family 6 Model 158 Stepping 13,
Genui...
PROCESSOR_LEVEL 6
PROCESSOR_REVISION 9e0d
ProgramData
ProgramFiles
ProgramFiles(x86)
C:\ProgramData
C:\Program Files
C:\Program Files (x86)
the environment variables. What do you notice?
ProgramW6432 C:\Program Files
PSModulePath C:\Users\ron\OneDrive\Documents\WindowsPowe...
PUBLIC C:\Users\Public
SESSIONNAME Console
SystemDrive C:
SystemRoot C:\Windows
TEMP C:\Users\ron\AppData\Local\Temp
TMP C:\Users\ron\AppData\Local\Temp
USERDOMAIN THEBURROW
USERDOMAIN_ROAMINGPROFILE THEBURROW
USERNAME ron
USERPROFILE C:\Users\ron
windir C:\Windows

PS C:\Users\ron> _

21
● Without doing anything special, running
programs requires you to type the path to the
The Path program.
○ From the current directory: .\hello.exe
The PATH is actually divided into two parts: the ○ Two directories up: ..\..\hello.exe
system path, which is global to all users on the ○ etc.
computer, and the user path, which is specific ● But what if you wanted to run a program from
to the currently logged in user. anywhere without having to type the path?
● The path is an environment variable that is
Depending on your level of access, you may not essentially a list of directories in your file
be able to change the system path (e.g. on lab system.
computers). ○ Usually, each directory contains at least one
executable program.
● Whenever you try to execute a command,
The full path is created by concatenating the Windows will search for an executable file with
two together - the system path always comes the same name in each of the directories in
first, and therefore will be searched first.
your path, in order.
○ It will attempt to execute the first matching file
that it finds.
This is just one reason why it is not a good idea
○ This means if you have two programs with the
to name your executables the same as existing
same name, it will execute the one that
system commands.
appears earlier in your path.
○ 22
This can happen if you have two different
1.3.1
0

Modify the User Path


You will sometimes need to make changes to your PATH so
that the correct program executes when you run it from the
command line.
● Close any currently opened command prompts.
● Open the environment variables editor.
○ Press the Windows-key and search the start menu for “environment.”
○ Make sure to pick “Edit environment variables for your account.”
● Edit the Path user variable.
○ In the dialog, click the New button at the top right. This will add a new entry
to the bottom of the list.
○ With the new entry selected, click the Browse… button.
○ In the dialog, find your SoftDev1 directory, and click OK.
● Launch a new command prompt.
○ Use the $env:PATH command to show your path.
○ Is your SoftDevI directory in the path?

23
Summary & Reflection

r help er What is one thing


o v that you wish you
a sk f at ser What is one knew more about
w to l, ch our as we move
Ho a i y new thing that
M to forward?
● e inking
you learned
L sh ots today?
● d e re en
co c
g s d Git
k i n What one
a ce
● T Advan question do
e you have about
Mor Log
● c k out today’s class?
he re
● C
sto User
e &
● R ystem
S
The
h
Pat
Please answer the questions above in your notes for
today. 24
Homework ● If you are using a computer other than
Assignment 1.3 the one that you used in class today, you
will need to clone your repository to the
● Software Development & Problem Solving is a new computer.
fast paced course that can be challenging, ● You will then continue to practice with
especially for students new to computing. the (slightly) more advanced Git features
● The homework assignments are that we used in class today:
designed to give you an opportunity to ○ Git Log
practice between lectures. ○ Checkout/Restore
● Each is designed to take about 90-120 ● You will also:
minutes. ○ Take some screen shots
● The assignments will also help you to ○ Get more practice with the command line
identify topics with which you need ● You will need to make sure that all of
more help. Ask questions! your work is pushed to your GitHub
repository before the start of the next
You can find the full instructions for this and any class!
○ There are no extensions for late
other assignment on MyCourses under Content.
assignments!
25

You might also like