Using Git
Create and register your own public key cryptography on github.com.
Create an account on github.com. SSH public key cryptography is required for use from the command line.
Use git bash (Windows app)
# Create public key cryptograohy
ssh-keygen -t ed25519 -C "your@email.com"
/C/Users/ast15/.ssh/id_ed25519_github # Filename
Paste the text of the created public key (id_ed25519_github.pub) on the setting page of github.com.
Copy the private key to the terminal and register it.
# Required
eval `ssh-agent`
ssh-add ~/.ssh/id_ed25519_github
vi ~/.ssh/config
Host github
HostName github.com
User git
IdentityFile ~/.ssh/id_ed25519_github
IdentitiesOnly yes
Login test
ssh -v git@github.com
Initialize in terminal doing git clone.
# Initialize on command line
git config --global core.autoCRLF true # windows
git config --global user.email "mail@mydomain.com"
git config --global user.name "AST"
git config --global push.default simple
git config --global core.sshCommand "ssh -i ~/.ssh/id_ed25519_github -F /dev/null"
# confirm
git config --global core.autoCRLF
# unset
git config --global --unset core.autoCRLF
# Clone
git clone git@github.com:MyGithub/project1.git