The gift will need to be deleted from the Contact record and then entered manually through the initiative in order to be credited to the initiative.  There is not a capacity to associate a gift made on a Contact record with an initiative.