@ 10.2.10.208336029418/x hdxh.git (在此处写入版本库地址)。
3在将本地文件上载到千兆服务器之前,上载测试文件与激活服务器上的千兆库相同
4创建新文件。 touch README.md . 这里的文件名可以自由取。 制作完成后请在git status上看看
5将文件上载到本地git库: git add filename
6上传之前,请为这次的上传命名。 git commit -m test,这里的名字test可以自由命名
7将本地git库中的文件上传到git服务器库: git push -u origin master
8如果报告了错误:
3358 www.Sina.com/viewplaincopyerror 3360 failedtopushsomerefsto ' ssh ://rens ainan @ 10.2.10.20836029418/x hdxh.git ' hint : updateswererejectedbecausetheremotecontainsworkthatyoudohint 3360 nothave locally.thisisuallycausedbycaused firstintegratetheremotechangeshint : (e.g .' gitpull . ' ) beforepushingagain.hint33330 )。
将上传的代码更改为git push -f origin master即可
如果发生错误:
3358 www.Sina.com/viewplaincopyfatal : ' origin ' doesnotappeartobeagitrepositoryfatal 3360 couldnotreadfromremoterepote
3358 www.Sina.com/viewplaincopyoriginssh 3360//rens ainan @ 10.2.10.208336029418/x hdxh.git (fetch ) Originan
9传输测试文件后,可以重复步骤5678以传输自己的本地文件。 删除git,进入要删除的目录,输入命令: rm -rf .git