Bir git repo'yu Kiln'den Github'a geçirmeye çalışıyorum. Gayet iyi yeni uzaktan ekleyebilir, ama yeni uzaktan kumandaya ana aktarma yapmaya çalıştığınızda, aşağıdaki hatayı alıyorum:'.git' dizinini git repo?
.git/
CHANGELOG.md
JSONKit.h
JSONKit.m
README.md
:
Counting objects: 8691, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3000/3000), done.
remote: error: object a9ee490ac00987835de30bdbc851da5e8d45d28b:contains '.git'
remote: fatal: Error in object
error: pack-objects died of signal 13
error: failed to push some refs to '[email protected]:Account/repo.git'
a9ee490ac00987835de30bdbc851da5e8d45d28b
içinde aşağıdaki dosyaları vardır Teslim Et Açıkçası, geçmişte bir kişi, hg
kullanarak, bir alt dizinde tam git repo'yu işaretledi.
Sadece bu dizini tamamen öldürmek istiyorum, ancak bu dosyayı git geçmişinden kaldırmada sorun yaşıyorum.
pushing a git repo fails with error: contains '.git''daki yanıt işe yaramıyor çünkü bir reper gibi bir repo'dayım, merhametli değil.
Bengit filter-branch --index-filter 'git rm -r --cached --ignore-unmatch .git'
denedim ama hata alıyorum:
Rewrite 7dbd0970d6c79215d11994b4a9b8091b2e954cfb (326/442)error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/HEAD'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/config'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/description'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/applypatch-msg.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/commit-msg.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/post-update.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/pre-applypatch.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/pre-commit.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/pre-rebase.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/prepare-commit-msg.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/hooks/update.sample'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/index'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/info/exclude'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/logs/HEAD'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/logs/refs/heads/master'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/objects/pack/pack-43fac03d375df5c1e380c5e522ba6bcb9b4e1ec1.idx'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/objects/pack/pack-43fac03d375df5c1e380c5e522ba6bcb9b4e1ec1.pack'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/packed-refs'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/refs/heads/master'
error: Invalid path 'Account/Libraries/ShareKit/Submodules/JSONKit/.git/refs/remotes/origin/HEAD'
ve geçmiş değiştirilemez görünmüyor. Git bilgiimin sınırındayım. Biri yardım edebilir mi?
Repo açık kaynak mı? bir kopyasını paylaşabiliyor musunuz? –
Ah, söz konusu repo'nun bir kopyasını paylaşmaya gerek yok, test amaçlı kullanabileceğim aynı tür kötü bir ağaçla bir Git deposu oluşturmayı başardım.arasında –
olası yinelenen [bir git Repo itme hata ile başarısız: içeren '.git'] (http://stackoverflow.com/questions/14728751/pushing-a-git-repo-fails-with-error-contains-git) –