Recently, I have encountered a problem of enter credentials (user-name and password) again and again while pushing code on Git-Lab. This was very annoying to me. So, In order to avoid to enter credentials again and again, follow following steps. step1: Generate public and private keys Enter following command. ssh-keygen -t rsa