Skip to content

Instantly share code, notes, and snippets.

@bouassaba
Created October 20, 2016 20:30
Show Gist options
  • Save bouassaba/e6653862d8c79aa59abd32f9f9d99181 to your computer and use it in GitHub Desktop.
Save bouassaba/e6653862d8c79aa59abd32f9f9d99181 to your computer and use it in GitHub Desktop.
Git add push only remote
git remote set-url --add --push origin <repo-url-here>
@johjeff
Copy link

johjeff commented Nov 29, 2019

Adding SSH key to ssh-agent is also useful:

Start the ssh-agent in the background.

$ eval "$(ssh-agent -s)"

Add your SSH private key to the ssh-agent. If you created your key with a different name, or if you are adding an existing key that has a different name, replace id_rsa in the command with the name of your private key file.

$ ssh-add ~/.ssh/id_rsa

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