【发布时间】:2009-12-02 04:45:18
【问题描述】:
我收到警告
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
这是(我认为)遥控器不是裸露的警告。然而,我打算让 remote 裸露,并且该目录(格式为 foo.git)中没有 .git 目录。如何检查它是否裸露?
额外信息:远程仓库在一台电脑上,git 1.5.4.3,本地仓库有git 1.6.3.3。两台机器都是 Ubuntu - 本地的是 Karmic Koala,远程的是旧版本。
【问题讨论】:
-
刚刚添加了表明存储库是裸存储库的条件
-
$ git rev-parse --is-bare-repository- 信用 jberryman please upvote his answer
标签: git