Skip to content

Instantly share code, notes, and snippets.

@Baluabd6
Forked from developius/README.md
Created April 5, 2019 07:29
Show Gist options
  • Save Baluabd6/318b16b6fa890afadb7e2ccaba6656c0 to your computer and use it in GitHub Desktop.
Save Baluabd6/318b16b6fa890afadb7e2ccaba6656c0 to your computer and use it in GitHub Desktop.

Revisions

  1. Finnian Anderson revised this gist Mar 24, 2015. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup.md
    Original 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 (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!)
    git add -A
    git commit -am "my update msg"
    git push
    ```
  2. Finnian Anderson created this gist Mar 24, 2015.
    24 changes: 24 additions & 0 deletions setup.md
    Original 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!)
    ```