Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

protocol error: expected old/new/ref, got 'shallow deeb...'

Tags:

git

I am editing a git repository that was cloned using --depth 1 (shallow clone).

I want to push my changes (commits) but I get this error:

$ git push
Counting objects: 14, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (8/8), done.
Writing objects: 100% (8/8), 56.88 KiB | 0 bytes/s, done.
Total 8 (delta 5), reused 0 (delta 0)
fatal: protocol error: expected old/new/ref, got 'shallow deeb2171db739fd366...'
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

How can I solve this?

Running git --version I get this:

$ git --version
git version 1.9.rc1
like image 441
Ionică Bizău Avatar asked Feb 04 '14 15:02

Ionică Bizău


1 Answers

git fetch --unshallow

Also see: how to unshallow your repo

like image 79
4 revs, 2 users 76% Avatar answered Nov 03 '22 02:11

4 revs, 2 users 76%