當推主分支到遠程目標:TMP警告:備份裁判時混帳推
git push tmp master
我得到這個消息
warning: Duplicated ref: refs/heads/master
推還是可以成功的。
但這條消息是什麼意思? 我如何找到更多關於此的詳細日誌信息?
這是我的.git/config中
[core]
repositoryformatversion = 0
filemode = false
bare = false
logallrefupdates = true
symlinks = false
ignorecase = true
hideDotFiles = dotGitOnly
[remote "origin"]
fetch = +refs/heads/*:refs/remotes/origin/*
url = [email protected]:testuser/myproject.git
[branch "master"]
remote = origin
merge = refs/heads/master
[remote "tmp"]
url = [email protected]:testuser/myproject.git
fetch = +refs/heads/*:refs/remotes/tmp/*
和我的Git版本是1.7.11.msysgit.1
show-ref
和ls-remote
信息的TMP
git show-ref
$ git show-ref
1696d17186db41cc70876f76f943e18ea4708ad3 refs/heads/master
3c51688bf27e712001db1b6e9f316748634643c4 refs/remotes/origin/HEAD
3c51688bf27e712001db1b6e9f316748634643c4 refs/remotes/origin/master
1696d17186db41cc70876f76f943e18ea4708ad3 refs/remotes/tmp/master
$ git ls-remote tmp
warning: Duplicated ref: refs/heads/master
1696d17186db41cc70876f76f943e18ea4708ad3 HEAD
1696d17186db41cc70876f76f943e18ea4708ad3 refs/heads/master
$ git ls-remote origin
3c51688bf27e712001db1b6e9f316748634643c4 HEAD
3c51688bf27e712001db1b6e9f316748634643c4 refs/heads/master
輸出的packed-refs
上TMP
$ git show-ref
warning: Duplicated ref: refs/heads/master
1696d17186db41cc70876f76f943e18ea4708ad3 refs/heads/master
內容在裸回購myproject.git
的find .
# pack-refs with: peeled
3c51688bf27e712001db1b6e9f316748634643c4 refs/heads/master
3c51688bf27e712001db1b6e9f316748634643c4 refs/heads/master
輸出。 objects文件夾中有太多的子文件,所以我不粘貼它們。
$ find .
.
./branches
./packed-refs
./objects
./HEAD
./info
./info/exclude
./config
./description
./refs
./refs/tags
./refs/heads
./refs/heads/master
./hooks
./hooks/commit-msg.sample
./hooks/update.sample
./hooks/pre-commit.sample
./hooks/prepare-commit-msg.sample
./hooks/post-update.sample
./hooks/pre-rebase.sample
./hooks/post-receive
./hooks/pre-applypatch.sample
./hooks/update
./hooks/applypatch-msg.sample
感謝您的回覆。我添加了一些細節信息,似乎tmp有一個重複的參考。我應該刪除那個裁判嗎? – txworking 2013-05-02 03:34:54
你有直接訪問tmp嗎?我不認爲我們可以通過遠程操作解決這個問題。如果你有直接訪問權限,那麼我們來做一些事情。首先,進入該回購併運行'git show-ref'。我想它會向我們展示與'git ls-remote'相同的東西,但讓我們來看看。其次,運行「查找」。在裸倉庫(myproject.git)中。最後,輸出packed-refs並用這些輸出更新你的答案。 – jszakmeister 2013-05-02 10:10:51
僅供參考,考慮到'ls-remote'的輸出,我們可能會刪除'refs/heads/master'(通過'git push'或'git update-ref' - 後者將需要訪問服務器)在tmp上,然後讓你重新推動你的工作樹的主人。但我想確保沒有別的錯誤。順便說一句,在tmp遠程上安裝了什麼版本的git? – jszakmeister 2013-05-02 10:11:14