So, when I use HTTPS method for cloning git repository and do some changes and push
or pull
to git it will always be prompting me for username and password
. what's the solution for that?
Apart from changing to SSH, you can also keep using HTTPS, if you don't mind to put your password in clear text. Put this in your ~/.netrc and it won't ask for your username/password (at least on Linux and Mac)
Make one .netrc
file in your home directory.
machine github.com
login <user>
password <password