To setup passwrodless clone to your github repo:
1: ssh-keygen -t ed25519
(need to read about ed25519 vs rsa )
2: Add this is you .ssh/config file
Host *
ForwardAgent yes
ServerAliveInterval 60
3: Add permission to config file:
chmod 600 ~/.ssh/config
4: To verify whether its working or not, just do ,
ssh [email protected]
and it will tell you whether you are authenticated or not.
5: To add git branch name in PS1
export PS1="\u@\h\\w:\$(git branch 2>/dev/null | grep '^*' | colrm 1 2)\$ "