i had heroku app. cloned started working on it. there issues , accidentally deleted .git directory locally , initialized new directory using git init
.
after made several commits , added several features code. want push code heroku dyno.
so git remote add origin git-remote-url
. tried git push
got error, doing git pull
gives following error -
warning: packfile .git/objects/pack/pack-887ccc7bf1196e49089e449ae1edd93c87c785b8.pack cannot accessed fatal: bad object 00eb66f14b52f3808720aaa35285a4f32e019a05 error: heroku.com:******.git did not send necessary objects
what should do?
maybe linked state of current repo (the 1 git init
again), doesn't contain full history published.
need clone again heroku reop, in order apply new commit did in local (but incomplete) repo;
something like:
git clone --bare yourherokurepo cd /path/to/myapp # deleted `.git`) git remote add localheroku /path/to/yourherokurepo.git git branch -m master oldmaster # new commits git fetch localheroku # full history git checkout -b master localheroku/master # working on branch # full history git cherry-pick ..oldmaster # re-apply commits git push
Comments
Post a Comment