在提交工程后,项目的.git文件夹里有个config文件,eclipse是不会自动配置的,这有可能导致下次在提交项目时又要重新提交。
下面给一个初始化配置:
[core]
repositoryformatversion = 0
filemode = false
logallrefupdates = true
[remote "origin"]
url = https://github.com/xxxx/xxxx.git
fetch = +refs/heads/*:refs/remotes/origin/*
[branch "master"]
remote = origin
merge = refs/heads/master