我得到了警告
warning: You did not specify any refspecs to push, and the current remote
warning: has not configured any push refspecs. The default action in this
warning: case is to push all matching refspecs, that is, all branches
warning: that exist both locally and remotely will be updated. This may
warning: not necessarily be what you want to happen.
warning:
warning: You can specify what action you want to take in this case, and
warning: avoid seeing this message again, by configuring 'push.default' to:
warning: 'nothing' : Do not push anything
warning: 'matching' : Push all matching branches (default)
warning: 'tracking' : Push the current branch to whatever it is tracking
warning: 'current' : Push the current branch
这(我认为)是一个警告,遥控器不是赤裸裸的。然而,我打算将远程目录设置为空的,并且该目录(格式为foo.git
)中没有.git目录。如何检查它是否为空的?
Extra information:远程存储库位于安装了git 1.5.4.3的计算机上,而本地存储库安装了git 1.6.3.3。两台机器都是Ubuntu --本地机器是Karmic Koala,远程机器是旧版本。
https://stackoverflow.com/questions/1830701
复制相似问题