Skip to content

Instantly share code, notes, and snippets.

@spiralm63
Forked from labe/cl_git.md
Created October 3, 2013 21:07
Show Gist options
  • Save spiralm63/6817148 to your computer and use it in GitHub Desktop.
Save spiralm63/6817148 to your computer and use it in GitHub Desktop.

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

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