You can point refs to a new location using the same command you use to create them:

    git update-ref refs/<refname> <object>

As an exercise, make all refs in this repository point to the tree object!