使用git pull或者git push默认是每次都要输入用户名密码的,使用起来很不方便,在Git代码的根目录下执行以下命令实现保存用户名和密码,不用每次都输入:
git config --global credential.helper store
这时只在第一次git pull/push的时候提示你输入用户名密码,登录信息会被记录在用户目录下.git-credential中,以后再更新代码都不用输入用户名和密码了,赶快去试试吧。
使用git pull或者git push默认是每次都要输入用户名密码的,使用起来很不方便,在Git代码的根目录下执行以下命令实现保存用户名和密码,不用每次都输入:
git config --global credential.helper store
这时只在第一次git pull/push的时候提示你输入用户名密码,登录信息会被记录在用户目录下.git-credential中,以后再更新代码都不用输入用户名和密码了,赶快去试试吧。