Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
cs-312:git-repo [2015/02/06 00:04]
ringger
cs-312:git-repo [2015/02/06 00:05] (current)
ringger
Line 4: Line 4:
 If this is your first commit, you may want to set your username and email. You should only need to do this once. 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.email you@z.com 
-git config --global user.name "Your Name"+git config --global user.name "Your Name"
  
 In terminal: In terminal:
-1. cd cs312       ​(change directory to the repo depends on where you have it stored) +cd cs312       ​(change directory to the repo depends on where you have it stored) 
-2. git add keys/​HW02-key.docx +git add keys/​HW02-key.docx 
-3. git add keys/​HW02-key.pdf  +git add keys/​HW02-key.pdf  
-4. git commit -m '​adding (mod 127) after last answer in HW #2' +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)+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. Before committing you can run git status, which will list under the heading "​Changes to be committed:"​ all the files which will be affected.
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