Skip to content

Instantly share code, notes, and snippets.

@labe
Last active December 23, 2015 06:59
Show Gist options
  • Save labe/6597415 to your computer and use it in GitHub Desktop.
Save labe/6597415 to your computer and use it in GitHub Desktop.
Submitting challenges to Socrates using command-line git

##Using git from the command line to submit Socrates challenges

###Downloading the gist

$ 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.

@thomasgwatson
Copy link

Is there any hope for those of us on Windows, where we cannot paste into powershell or the command line? Have mercy upon us!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment