Skip to content

Instantly share code, notes, and snippets.

@teisman
Last active December 10, 2015 23:28
Show Gist options
  • Save teisman/4509527 to your computer and use it in GitHub Desktop.
Save teisman/4509527 to your computer and use it in GitHub Desktop.

Set up a Git that authenticates over SSH

git init
# Set up the initial Git structure

git remote add origin ssh://git@github.com/<username>/<repo>.git
# Have Git connect to Github over SSH

Next, add your SSH key in the Github settings

Transfer files from origin to master

git add <files>

git commit -m '<commit description>'

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