Skip to content

Instantly share code, notes, and snippets.

@sirvon
Forked from chrisross/curl_create_repo_github
Created April 28, 2013 21:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sirvon/5478535 to your computer and use it in GitHub Desktop.
Save sirvon/5478535 to your computer and use it in GitHub Desktop.
curl -u <username_here> https://api.github.com/user/repos -d '{"name":"curltest", "description": "testing description"}'
=> Enter passphrase:
// Example test case(below):
cd <local_repo_dir_path>
mkdir curltest
cd curltest
git init
touch curltest.txt
subl& culrtest.txt
git add .
git commit -m "Testing"
git remote add origin git@github.com:<username_here>/curltest.git
git push -u origin master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment