我不知道为什么我是无法结帐我之前工作过的分支。请参阅下面的命令(注意:co
是checkout
的别名):
ramon@ramon-desktop:~/source/unstilted$ git branch -a* developfeature/datts_rightfeature/user_controlled_menufeature/user_controlled_site_layoutsmasterremotes/origin/HEAD -> origin/masterremotes/origin/developremotes/origin/feature/datts_rightremotes/origin/masterramon@ramon-desktop:~/source/unstilted$ git co feature/user_controlled_site_layoutserror: pathspec 'feature/user_controlled_site_layouts' did not match any file(s) known to git.
我不知道这是什么意思,我似乎在谷歌上找不到任何我能理解的东西。
我如何检查那个分支,我可以做些什么来打破这个?
更新:
我找到了这篇文章,运行git show-ref
给了我:
97e2cb33914e763ff92bbe38531d3fd02408da46 refs/heads/developc438c439c66da3f2356d2449505c073549b221c1 refs/heads/feature/datts_right11a90dae8897ceed318700b9af3019f4b4dceb1e refs/heads/feature/user_controlled_menuc889b37a5ee690986935c9c74b71999e2cf3c6d7 refs/heads/masterc889b37a5ee690986935c9c74b71999e2cf3c6d7 refs/remotes/origin/HEADe7c17eb40610505eea4e6687e4572191216ad4c6 refs/remotes/origin/developc438c439c66da3f2356d2449505c073549b221c1 refs/remotes/origin/feature/datts_rightc889b37a5ee690986935c9c74b71999e2cf3c6d7 refs/remotes/origin/master23768aa5425cbf29d10ff24274adad42d90d15cc refs/stashe572cf91e95da03f04a5e51820f58a7306ce01de refs/tags/menu_shows_published_only429ebaa895d9d41d835a34da72676caa75902e3d refs/tags/slow_dev
更新#0目录(user_controlled_site_layouts
在refs/heads/feature folder
中):
$ ls .git/refs/heads/feature/datts_right user_controlled_menu user_controlled_site_layouts$ cat .git/refs/heads/feature/user_controlled_site_layouts3af84fcf1508c44013844dcd0998a14e61455034
更新git show 3af84fcf1508c44013844dcd0998a14e61455034
$ git show 3af84fcf1508c44013844dcd0998a14e61455034commit 3af84fcf1508c44013844dcd0998a14e61455034Author: Ramon Tayag <xxx@xxxxx.xxx>Date: Thu May 12 19:00:03 2011 +0800
Removed site layouts migration
diff --git a/db/schema.rb b/db/schema.rbindex 1218fc8..2040b9f 100755--- a/db/schema.rb+++ b/db/schema.rb@@ -10,7 +10,7 @@## It's strongly recommended to check this file into your version control system.
-ActiveRecord::Schema.define(:version => 20110511012647) do+ActiveRecord::Schema.define(:version => 20110503040056) do
create_table "attachments", :force => true do |t|t.string "name"@@ -205,15 +205,6 @@ ActiveRecord::Schema.define(:version => 20110511012647) dot.integer "old_id"end
- create_table "site_layouts", :force => true do |t|- t.string "name"- t.text "description"- t.text "content"- t.integer "site_id"- t.datetime "created_at"- t.datetime "updated_at"- end-create_table "site_styles", :force => true do |t|t.text "published"t.datetime "created_at"