this is my situation
- I added a external repo using
git subtree add -P dir/ externalrepo master
. - From there I create a branch locally (
git checkout -b newbranch
) - Made some changes, I committed and pushed them
- Now I just want to add those changes to the external repo with
git subtree push -P dir/ externalrepo master
but this is the outcome
git push using: externalrepo master
Enumerating objects: 24, done.
fatal: remote error: want 585cc138094f5003142f0cb5a40f0f56ecd1facf not valid
error: remote unpack failed: eof before pack header was fully read
To github.com:user/externalrepo.git
! [remote rejected] 88c2aa24aea0bf7d7942209f31215b003cdf5e67 -> master (failed)
error: failed to push some refs to 'github.com:user/externalrepo.git'
I dont know how to add the changes to the external repo