I am using git-deploy to upload changes to my server. My website is WordPress though my problem is shared with any application where file are uploaded.
When I upload files through the application they are not added to the repo (which would require git add
and git commit
. I want these uploaded files to be in source control. I SSHed into the server and I noticed that the actual web root is not a git repo. That makes sense and is create security. However, it makes adding files to git more difficult.
How do I add the files that are uploaded to my web server to my git repository when I am using git-deploy to handle my deployments?