anything you do do remotely (including SSH) happen in app-root.
GIT uses app-deployments.
you need to copy the files from app-root to your computer, then push them with GIT. ALSO, NEITHER /data, nor app-root scale. only app-deployments>current gets scaled.