Stage entire git repo into build directory

Closes #27193.