Prevent Unity from saving hardcoded paths to assets

I am a newby Unity developer and I understand Unity saves the full paths to assets so if 2 devs are working on the same project, each project will save different paths to the project and when it imports the assets, the code is changed so I have a bunch of changes when I commit into git, but the changes are only hardcoded file paths.

How do I prevent Unity from saving the hardcoded path?

Thanks in advance.
Clint

As far as I have seen, all asset references are saved as GUIDs. Where are you seeing these hardcoded file paths?