打开项目的 .git/config文件,参照以下进行编辑
[core]
symlinks = false
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "origin"]
url = https://github.com/用户名/项目名.git(即项目的git路径)
fetch = +refs/heads/*:refs/remotes/origin/*
push = +refs/heads/master:refs/heads/master