I installed Git on my Pi and it was running very good. I set up a repository on the USB drive.
Recently, there was some issue with my SD-Card and I just moved to a newer card. Now, how should I be able to setup the old git repository on the USB drive using the RaspBian/Git on the new card so that I do not lose the history?
I tried following the instructions here: https://gist.github.com/manakor/8972566, but this does not work at the point when I try to push to my new repo
git push --all new-origin.
Can someone help?