상황 :
id@localhost:/tmp$ git clone http://git-id@server-ip/repository.git
에러메시지 :
Cloning into 'repository'...
Password for 'http://git-id@server-ip':
error: The requested URL returned error: 401 (curl_result = 22, http_code = 401, sha1 = 1f04a0510878ca1d46f9146bd5e5646eb79ada02)
error: Unable to find 1f04a0510878ca1d46f9146bd5e5646eb79ada02 under http://git-id@server-ip/repository.git
Cannot obtain needed commit 1f04a0510878ca1d46f9146bd5e5646eb79ada02
while processing commit 772da5f18c4cba1b926781fb70895b5d6f6d3ef5.
error: Fetch failed.
해결방법 :
Doing a git cleanup git gc should fix the problem. Run
git gc
on the folder where the git repo is hosted and that should fix the problem.출처: http://stackoverflow.com/questions/5251262/git-clone-over-http-fails-curl-result-22-http-code-401
-------------------------------------------------------------------------------------------------------------------
상황 :
git pull origin master
에러메시지 :
error: Unable to find a47058d09b4ca436d65609758a9dba52235a75bd under http://myweb.com/myapp.git
Cannot obtain needed blob a47058d09b4ca436d65609758a9dba52235a75bd
while processing commit 041d57dd5bed9d6c75fe7cce944b2b2904ae3a62.
error: Fetch failed.
해결방법:
Recover the object from another repository/clone.
Don't forget to take into account packs. So, a more generalized procedure is this:
On a 'complete' git database
git cat-file -p a47058d09b4ca436d65609758a9dba52235a75bd > tempfile
and on the receiving end
git hash-object -w tempfile
출처: http://stackoverflow.com/questions/11957184/git-error-unable-to-find
댓글
댓글 쓰기