I want push to github repository without input username and password.
-
Add pub key to github account [profile -> settings -> SSH keys];
-
Set up git default user name and email address with
git config --global user.nameandgit config --global user.email; -
Test ssh connection:
ssh -T git@github.com; -
Modify remote repo address: from
https://github.com/USERNAME/OTHERREPOSITORY.gittogit@github.com:USERNAME/OTHERREPOSITORY.git, where first replacehttps://withgit@, then replacegithub.com/withgithub.com:.
Now you can push to github repo (git push origin master) without input username and password.
Ref:
Git push requires username and password