Git pulls a push.default warning

ⅰ亾dé卋堺 提交于 2019-12-05 13:30:25
VonC

It means that by default, Git pushes only the current branch, and only if a remote branch of the same name exists in that remote.

That is why, in that default mode, the first push must be an explicit one:

git push -u origin master

In your case, master already had an upstream branch, so git push was enough.

But since the push policy wasn't explicitly set, the warning reminds you that, by default, only the current branch is pushed.
See more at "Why is pushing to matching the default in Git?"

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!