在.git==>config 文件中添加以下两句话: push = +refs/heads/master:refs/heads/gh-pages push = +refs/heads/master:refs/heads/master