##Using git from the command line to submit Socrates challenges
###Downloading the gist
- On challenge page in Socrates:
- "Start Challenge"
- "Edit this gist"
- On gist page in Github:
- "Clone this gist" => copy link
- url should look something like
https://gist.github.com/e99faa422207f43ec6fc.git
- url should look something like
- "Clone this gist" => copy link
- In terminal:
$ cd ~/Desktop
$ git clone <your clone url here> <folder name>
$ cd <folder name>
$ subl .
###Uploading the gist
- In terminal:
$ git add .
# OR
$ git add <filename>
(and then)
$ git commit -m .
$ git push
< enter github credentials for the person whose name is on the gist page >
- On gist page in Github: (OPTIONAL)
- refresh page to confirm changes pushed up correctly
- On challenge page in Socrates:
- "Submit this solution"
###Bonus stuff!
$ git status
shows you the status of the files in your current git directory. Red text means a file has been modified (including added/deleted) but has not yet been added or committed. Green text means a file has been added but not committed.
Is there any hope for those of us on Windows, where we cannot paste into powershell or the command line? Have mercy upon us!!