-
-
Notifications
You must be signed in to change notification settings - Fork 184
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
SSH option in gitconfig #397
Comments
By setting the For example, with the following configuration: [url "ssh://git@github.com/"]
pushInsteadOf = https://github.com/ Git will attempt to push to
With this setup, you no longer need to use commands like |
Thanks, but my main point is cloning through SSH; I don't want to authenticate using HTTPS. And, using your solution I would have to authenticate through both protocols while working on private repos. |
Github recommends to use SSH over HTTPS, and some people like me uses only SSH to clone repos.
So, it would be good to have a setting in the .gitconfig to avoid adding -p on all clone commands.
The text was updated successfully, but these errors were encountered: