-
Notifications
You must be signed in to change notification settings - Fork 0
Git Setup
- On Linux:
sudo apt-get install git - Otherwise download and install from http://windows.github.com/ or http://mac.github.com/
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)
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.
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.