Skip to content
Dillon Jeffers edited this page Apr 24, 2014 · 6 revisions

Installing Git

Git setup

In the terminal (or with git bash if you're using Windows) type the following commands. Use your actual username and the email address you used with GitHub. If you have a favorite editor that isn't vim, feel free to substitute that with something else.

git config --global user.name 'git_username'
git config --global user.email '[email protected]'
git config --global core.editor vim
git config --global merge.tool vimdiff
git config --global color.status auto
git config --global color.branch auto
git config --global color.interactive auto
git config --global color.diff auto
git config --global credential.helper cache // temporarily keeps your login credentials in memory (15 min)
git config --global credential.helper 'cache --timeout=3600' // change the default timeout (in seconds)

Getting the AutoAutoTest Repository

You need to checkout a copy of our code to do one of the TODOs in 436. In the terminal or git bash, navigate to a directory that you would like to be the parent directory of the code. Then type

git clone https://github.com/CSc436/AutoAutoTest.git

This will make a directory called AutoAutoTest in the directory that you're currently in.

Complete the Git TODO

Edit the README.md file inside of AutoAutoTest/ so that it contains your name. Then save the file. Make sure you're in the AutoAutoTest/ directory, then execute the following lines:

git pull # This will make sure that you have the latest version of the code
git add README.md # This tells git you want to upload this to GitHub
git commit -m 'Added my name' # This creates a restore point that you can use to undo changes later
git push # This tells git to put your changes on GitHub

You should be able to view your changes on GitHub now! NOTE: This guide has you commit directly to the master branch. That's what the TODO says to do, but isn't how we should do things in the future.

Clone this wiki locally