Handle file error with [-gm]

Changed a copy operation to a move to prevent conflicts with existing files.

In addition, the program will terminate on error with git move.