Last active
November 21, 2018 04:04
-
-
Save wpupru/cf9a24f4bf928a662723b0df2b0f686d to your computer and use it in GitHub Desktop.
Создание ssh-ключа для гит
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 Создание ssh-ключа | |
На Windows можно как через cmd, так и Git Bash, на *nix — просто в консоли. Но в cmd я не разбираюсь, поэтому привожу инструкцию только для Git Bash & *nix: | |
ssh-keygen -t rsa -C "[email protected]" | |
*************************************************** | |
После выполнения команды публичный ключ появляется соответственно в | |
C:\Users\%username%\.ssh\id_rsa.pub | |
~/.ssh/id_rsa.pub | |
****************************************************** | |
После этого надо выполнить команды для инициализации гит на компе: | |
git config --global user.name "YourFullName" | |
git config --global user.email [email protected] | |
И после этого клонировать свои депозитории по ssh | |
[email protected]:blablabla.git |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment