$ git push localhost:/tmp/foo refs/tags/2.11-1ubuntu1:refs/heads/ubuntu/devel
Authenticated with partial success.
Verification code:
Password:
Counting objects: 50, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (41/41), done.
Writing objects: 100% (50/50), 65.26 KiB | 0 bytes/s, done.
Total 50 (delta 4), reused 0 (delta 0)
error: Trying to write non-commit object 8bd94ee19a36c6e1fae755a8a572150b442b0e54 to branch refs/heads/ubuntu/devel
remote: error: cannot update the ref 'refs/heads/ubuntu/devel'.
To localhost:/tmp/foo
! [remote rejected] 2.11-1ubuntu1 -> ubuntu/devel (failed to update ref)
error: failed to push some refs to 'localhost:/tmp/foo'