GIT Homework
Due January 29
Goal
For this classes we will use GIT to track our projects on the
GitHub server.
GitHub is free for public processes, but costs money for (about $7.00 a month) for private projects. It is assumed your projects will be public, but you are free to make them private is you wish to. However, the instructor must have access to all class related projects for grading purrposes.
Overview
Git is typically used for a group to synchronize their activities. to do this there is a common repository server that everyone pushes to and pulls from, and sometimes merges with. We will be using
GitHub as our repository.
GitHub is an online repository that alows groups of people to work on a project together, allowing them to work on and synchronize their work. It also keeps a complete history of ALL versions of every file in the project. In this class all groups are required to create an use a repositoryfor group projects. You will sent your project name to the instructor so the project can be monitored.
You will manage the code state with "push", "pull", "clone", and "fetch" operation.
You will work with your team to create a GIT repository on the server using project 2. Then set it up at
GitHub. Finally your other teammates and you will experiment with using this
GitHub repositroy from several accounts.
Steps
- All of the team members wil create GitHub accounts.
- One of the team members will create a project (public) called nameserver. The other members will be invited to the project.
- The of the team members will turn their Project 2 into a Git project. Instructions Here. Example Here .
- make their project 2 folder to be a
References
Review the following as needed. Remember you can ignore things relating to INSTALLING and REMOTES.
For all the steps below make a word processing document that chows and explains each command you had to use.
- Initialize and set up a local Git.
- Add your project code to the local Git as a new project (you will have others later)
- Show how to commit new changes.
- Show how to revert back to the previous commit after making changes. What is this useful for?
- Show how to compare two different of the same file.
- Show how to bring back an older version of a file without reverting.
- Show how to add and remove files from a Git repository.
- Show how to exclude certain files from being tracked by Git. What is this is important.
- Turn is all in on Moodle.
Topic revision: r5 - 2017-02-08 -
JimSkon