Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
G
git-tutorial
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Michael Alan Marsh
git-tutorial
Commits
49c0fe89
Commit
49c0fe89
authored
7 years ago
by
Michael Marsh
Browse files
Options
Downloads
Patches
Plain Diff
created git example assignment
parents
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
README
+50
-0
50 additions, 0 deletions
README
with
50 additions
and
0 deletions
README
0 → 100644
+
50
−
0
View file @
49c0fe89
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
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment