Created
October 20, 2016 20:30
-
-
Save bouassaba/e6653862d8c79aa59abd32f9f9d99181 to your computer and use it in GitHub Desktop.
Git add push only remote
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 characters
git remote set-url --add --push origin <repo-url-here> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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