-
-
Save Baluabd6/318b16b6fa890afadb7e2ccaba6656c0 to your computer and use it in GitHub Desktop.
Revisions
-
Finnian Anderson revised this gist
Mar 24, 2015 . 1 changed file with 3 additions and 3 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -18,7 +18,7 @@ git remote set-url origin [email protected]:username/your-repository.git Now try editing a file (try the README) and then do: ``` git add -A git commit -am "my update msg" git push ``` -
Finnian Anderson created this gist
Mar 24, 2015 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,24 @@ Create a repo. Make sure there is at least one file in it (even just the README) Generate ssh key: ``` ssh-keygen -t rsa -C "[email protected]" ``` Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings. Test SSH key: ``` ssh -T [email protected] clone the repo: git clone git://github.com/username/your-repository ``` Now cd to your git clone folder and do: ``` git remote set-url origin [email protected]:username/your-repository.git ``` Now try editing a file (try the README) and then do: ``` git add -A (adds all files in that folder - excluding hidden files - to the commit file list.) git commit -a (all) -m "my update msg" git push (GO GO GO!) ```