Installing Git and GitHub
Download & Install
- Download setup of git from here.
- After, install it just clicking on ‘Next’ button several time (no special setting to do).
NOTE: Be sure that Git Bash is installed on your system!!!
GitHub Configurations
- Run Git Bash program.
- Setup a new ssh key with
ssh-keygen
command and give it a$sshKeygenName
(otherwise it will beid_rsa
). - Go to
Settings
of your GitHub account and pressSSH and GPG keys
. - Click on
New SSH key
. - Give it a
Title
and paste the content ofsshKeygenName.pub
file under the nameofKey
. - Run the following commands in Git Bash to present yourself to your computer.
git config --global user.name "$username"
git config --global user.email "$email"
git config --global user.password "$password"
git config --global credential.helper store
- Activate your ssh-agent by using
eval `ssh-agent -s`
- Add your identity by using
ssh-add -l
- Add your
$sshKeygenName
by usingssh-add ~/.ssh/$sshKeygenName
. - Now, you are ready to use
git clone git@github.com:username/repositoryname.git
.
Note:Use Git Bash as your terminal to run the commands. Note2:If these steps were successfull and you have some problem after a period of time, rerun the commands below.
eval `ssh-agent`
ssh-add -l
ssh-add ~/.ssh/id_rsa