git a Clue with Revision Control
Revision Control
Overview
Preparations
# Generate a SSH Key for our remote repository.
ssh-keygen -t rsa -C "YourCoolEmail@SomeEmailDomain.TLD"
# or
ssh-keygen -t rsa -C "YourCoolGitUsername"
# Enter a passphrase or leave it blank.
# Enter path and file name i.e ~/.ssh/rsa_GitHub
# Adjust your ssh keys and directory.
# Set ownership
sudo chown -R $USER:$USER ~/.ssh
# Set directory and file permissions
chmod 700 ~/.ssh
chmod 600 ~/.ssh/id_rsa # Private key
chmod 644 ~/.ssh/id_rsa.pub # Public key
chmod 600 ~/.ssh/authorized_keys # If present locally
chmod 644 ~/.ssh/config # Optional, if using SSH config
# Print the PUBLIC key
cat ~/.ssh/rsa_GitHub.pubTesting SSH to Git Repo
Configure your Local Git
Using Git
References
Last updated