I’m either a moron or Dreamhost is rediculously overcomplicated.
I set up a git repo for my Wordpress site, and pushed it to my server. That has been going great.
Then, my I update a plugin on my website instead of on my local server, and a bunch of files were uploaded to the server via FTP, now my local and remote repos are out of sync.
No problem, right? I ssh into my server, and
cd [sitename] git commit yada yada yada
… and voil… oh. whoops …
fatal: not a git repository (or any parent up to mount point /) Stopping at filesystem boundary (GIT_DISCOVERY_ACROSS_FILESYSTEM not set).
Oh, right, the git is in another folder! duh. So, I just
cd ../[sitename].git git commit
fatal: this operation must be run in a work tree
WHAT THE HECK MAN?! When I am in the work tree, it says it’s not a git repo, and when I am in the git repo, it says it’s not a work tree! How am I supposed to commit changes on the server?
The only thing I could figure out to do is FTP all the files back to my local server and commit them, and then push them back to the server, but that seems insane.