我得到警告如何檢查存儲庫是否裸露?
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目錄。我如何檢查它是裸露的?
其他信息:遠程存儲庫在計算機上使用git 1.5.4.3,本地存儲庫具有git 1.6.3.3。這兩款機器都是Ubuntu--本地機器是Karmic Koala,遠程機器是舊版本。
只是添加了指示存儲庫是一個裸露的一個 – VonC 2009-12-02 05:06:39
'$ git的REV-解析--is-裸repository'的標準 - 信用** ** jberryman [請給予好評他的回答](http://stackoverflow.com/a/14734826/495132) – 2013-11-03 21:33:45