首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >如何检查存储库是否为空的?

如何检查存储库是否为空的?
EN

Stack Overflow用户
提问于 2009-12-02 12:45:18
回答 5查看 14.1K关注 0票数 25

我得到了警告

代码语言:javascript
运行
复制
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,远程机器是旧版本。

EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/1830701

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档