Skip to content
Snippets Groups Projects
Commit 49c0fe89 authored by Michael Marsh's avatar Michael Marsh
Browse files

created git example assignment

parents
No related branches found
No related tags found
No related merge requests found
README 0 → 100644
You may have noticed that, when commiting to your git repositories,
you get a message along the lines of:
Your name and email address were configured automatically based
on your username and hostname. Please check that they are accurate.
You can suppress this message by setting them explicitly:
git config --global user.name "Your Name"
git config --global user.email you@example.com
As a result, git has pulled what information it can from your local
user account, and used that. The result is log entries that look
something like:
commit 852e77ea537eda3a73ac3389babbad04c35e6729
Author: Seed <seed@ubuntu.(none)>
Date: Fri Oct 20 06:45:24 2017 -0700
This isn't terribly useful, especially when multiple people might
be editing a repository.
Your task in this assignment is to run the git config commands listed
above. To make sure this was successful, you should do the following
in this directory:
touch testing
git add testing
git commit
# add your commit log comment
git log
# verify that your name and email address are correct, and if so...
git push origin master
On ELMS, rather than pasting in the hash of the commit, you should
paste in the git log entries for the *last two* commits. Here's
an example (for a different repository):
commit 47ff823891e44bb7e8b17f5c28c647b827c1a008 (HEAD -> f17, origin/f17)
Author: Michael Marsh <mmarsh@cs.umd.edu>
Date: Wed Oct 18 10:06:42 2017 -0400
added anon comms readings
commit 8e9c49805ec80fec496755c23db21f72432a4826
Author: Michael Marsh <mmarsh@cs.umd.edu>
Date: Tue Oct 17 14:28:49 2017 -0400
added lecture slides
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment