Skip to content

Instantly share code, notes, and snippets.

@dbritto-dev
Last active June 10, 2021 16:49
Show Gist options
  • Save dbritto-dev/adddd2f36066ce441c7dadf360b1dfaf to your computer and use it in GitHub Desktop.
Save dbritto-dev/adddd2f36066ce441c7dadf360b1dfaf to your computer and use it in GitHub Desktop.

Revisions

  1. dbritto-dev revised this gist Jun 10, 2021. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions Git.md
    Original file line number Diff line number Diff line change
    @@ -4,8 +4,9 @@ Clone a new project for a new account
    GIT_SSH_COMMAND='ssh -i ~/.ssh/<id_rsa_custom>' git clone [email protected]:<your-project>.git
    ```

    Configure git to use the custom GIT_SSH_COMMAND
    Configure git to use the custom GIT_SSH_COMMAND

    ```sh
    git config core.sshCommand 'ssh -i ~/.ssh/<id_rsa_custom>'
    ```
    ```
    > **Note:** run this command inside of the repo
  2. dbritto-dev revised this gist Dec 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Git.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    Clone a new project for a new account

    ```sh
    GIT_SSH_COMMAND='ssh -i ~/.ssh/==<id_rsa_custom>==' git clone [email protected]:<your-project>.git
    GIT_SSH_COMMAND='ssh -i ~/.ssh/<id_rsa_custom>' git clone [email protected]:<your-project>.git
    ```

    Configure git to use the custom GIT_SSH_COMMAND
  3. dbritto-dev revised this gist Dec 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Git.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    Clone a new project for a new account

    ```sh
    GIT_SSH_COMMAND='ssh -i ~/.ssh/**<id_rsa_custom>**' git clone [email protected]:<your-project>.git
    GIT_SSH_COMMAND='ssh -i ~/.ssh/==<id_rsa_custom>==' git clone [email protected]:<your-project>.git
    ```

    Configure git to use the custom GIT_SSH_COMMAND
  4. dbritto-dev revised this gist Dec 2, 2020. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion Git.md
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    Clone a new project for a new account

    ```sh
    GIT_SSH_COMMAND='ssh -i ~/.ssh/<id_rsa_custom>' git clone [email protected]:<your-project>.git
    GIT_SSH_COMMAND='ssh -i ~/.ssh/**<id_rsa_custom>**' git clone [email protected]:<your-project>.git
    ```

    Configure git to use the custom GIT_SSH_COMMAND
  5. dbritto-dev revised this gist Sep 24, 2020. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions Git.md
    Original file line number Diff line number Diff line change
    @@ -1,11 +1,11 @@
    Clone a new project for a new account

    ```sh
    GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_elementbio' git clone [email protected]:elembio/templates/graphql-api.git
    GIT_SSH_COMMAND='ssh -i ~/.ssh/<id_rsa_custom>' git clone [email protected]:<your-project>.git
    ```

    Configure git to use the custom GIT_SSH_COMMAND

    ```sh
    git config core.sshCommand 'ssh -i ~/.ssh/id_rsa_elementbio'
    git config core.sshCommand 'ssh -i ~/.ssh/<id_rsa_custom>'
    ```
  6. dbritto-dev created this gist Sep 24, 2020.
    11 changes: 11 additions & 0 deletions Git.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,11 @@
    Clone a new project for a new account

    ```sh
    GIT_SSH_COMMAND='ssh -i ~/.ssh/id_rsa_elementbio' git clone [email protected]:elembio/templates/graphql-api.git
    ```

    Configure git to use the custom GIT_SSH_COMMAND

    ```sh
    git config core.sshCommand 'ssh -i ~/.ssh/id_rsa_elementbio'
    ```