How to access a git repository using SSH?
Setup Git
- Install it with
sudo apt-get install git
(see here) - Configure Git (see here)
Implement SSH on GitHub/BitBucket
- Generate the SSH key with
ssh-keygen -t rsa -b 4096
(see here) - Copy the content of your public SSH key, it is the file
id_rsa.pub
by default - Paste the content into your GitHub/BitBucket account on the SSH key section
Get the repo
Just clone it:
- GitHub:
git clone [email protected]:YOUR_USERNAME/REPO_NAME.git
- BitBucket:
git clone [email protected]:USERNAME/REPO_NAME.git
For more information managing a repo, take a look at the Git For Humans guide by Lucio Martinez.
GUI Tools
You can install git-gui which is a built-in GUI tool for commit.
For more options, take a look at the list on the official page.