Maison > Questions et réponses > le corps du texte
使用的是最新版本的git,push到远程总是报错。我所有的额执行代码如下:
git init
git add .
git commit -a -m "first commit"
git remote add origin git@github.com:zbphp/zbphp.com.git
git push -u origin
结果报错,然后有的时候会提交到远程,有的时候又无法提交到远程,很奇怪
我之后运行了
git config --global push.default origin
git config --global push.default #输出origin
#然后我再提交,结果报错了,连提交都不能了
git push
git push -u origin #也报错了
另外,bash里面是如何复制啊。
伊谢尔伦2017-04-25 09:06:16
Regardez l'invite, ne vous demande-t-elle pas d'exécuter git config --global push.default
....
http://www.oschina.net/news/45585/git-2-x-change-push- par défaut - simple
Regardez ce que vous avez couru, s'il vous plaît, courez
git config --global push.default simple
Suivez les instructions, pourquoi ne pouvez-vous pas ajouter le nom de la branche lorsque vous appuyez sur... 囧...
为情所困2017-04-25 09:06:16
git push 远程仓库 远程仓库所在分支
Et vous n'avez écrit que git push origin. Aucune information sur la succursale n'est indiquée. Par exemple git push origin master
C'est très bien.