linux下:1.在~/下, touch创建文件 .git-credentials, 用vim编辑此文件,输入:https://{username}:{password}@github.com注意去掉{}2.在终端下执行 git config --global credential.helper store3.可以看到~/.gitconfig文件,会多了一项:[credential]helper = store