Generate ssh key pair (private and public)
To be able to use Git via SSH or https you need an SSH key-pair
open git bash shell
From bash
$ ssh -keygen |
Now you have a keypair stored in your userprofiles home adress (c:\users\username\.ssh)
Set Git username and password
$ git config --global user.name "Current User" $ git config --global user.email "[email protected]" |
Then check that input was correct
Check configuration
$ git config --global --list |
Nice aliases
git config –global alias.lol ‘log –graph “–pretty=format:%C(auto)%d%Creset%n%C(yellow)%n%Creset %s”‘
git config --global alias.loll 'log --graph "--pretty=format:%C(auto)%d%Creset%n%C(yellow)%h%Creset %s" --all'