Home > Uncategorized > Quickly set up git to use github

Quickly set up git to use github

Config:

git config --global user.name "username"
git config --global user.email "email@domainy.com"

Create repo and commit:

#thanks: http://stackoverflow.com/a/10325316/843000
curl -u username https://api.github.com/user/repos -d {\"name\":\"reponame\"}
#see http://developer.github.com/v3/repos/#create
git init
git add *
git commit -m "take a look at the source for assistance"
git remote add origin https://github.com/username/reponame.git
git pull origin master
git push origin master

https help:

git config --global http.sslVerify false
git config --global --unset http.sslVerify

To trust a cert:

git config --global http.sslCAInfo cert.pem

APIs.IO will also help.

Advertisements
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: