TA: Updating the CS 312 Git Repo.

Here's a quick example of making a change to the repo using the command line. Here I've made a change to the HW2 key. If this is your first commit, you may want to set your username and email. You should only need to do this once.

  • git config –global user.email you@z.com
  • git config –global user.name “Your Name”

In terminal:

  1. cd cs312 (change directory to the repo depends on where you have it stored)
  2. git add keys/HW02-key.docx
  3. git add keys/HW02-key.pdf
  4. git commit -m 'adding (mod 127) after last answer in HW #2'
  5. git push (send changes up to server, you will need to enter your password)

Before committing you can run git status, which will list under the heading “Changes to be committed:” all the files which will be affected. After committing you can run git log, which should then list your commit.

(Thanks to Thomas Hansen)

cs-312/git-repo.txt · Last modified: 2015/02/06 00:05 by ringger
Back to top
CC Attribution-Share Alike 4.0 International
chimeric.de = chi`s home Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0