如果你所有的工作都在一个Git网站上,可以设置全局的,方便快捷git config --global credential.helper store如果不是,需要在每个单独的仓库中单独设置git config credential.helper store设置完成之后,需要手动触发一下拉取,然后输入用户名和密码的操作(git会store起来),后面就再也不用输入了~