RewriteReferences

Author: Fredrik Ludvigsen (Steinbitglis)

Description
This script creates a command which rewrites a reference throughout a whole project.

Usage
GetRewriteCommand creates a command, based on git, xargs and sed, which can effortlessly rewrite references in a Unity project.

This saves a lot of pain associated with having to open scenes, reconnecting references and saving the scenes again.

The patch becomes minimal, since you haven't even opened them in Unity. This makes the patch merge more easily too.

Example
This example shows how to update a whole list of references by writing all the commands to a file in the project root.

To use this command file with git bash or your favorite unix-like terminal:

source database_update_command.sh