I'm using git to maintain a web site located on a remote server. My workflow has been as follows:
Stage and commit changes to the web site (can do with Magit)
ssh
to the remote site and pull the changes into the repository that is located there, updating the working tree (cannot do with Magit)Still in the script at the remote site, run
make
on the new working treeBack in emacs, fetch from the remote repository, so that Magit knows things are up to date
Steps 2 and 3 are implemented by a single shell script, but now that I'm addicted to magit, leaving magit to run a shell script seems an enormous imposition. My question is twofold:
How can I integrate steps 2, 3, and 4 into a single emacs command? The magit documentation has a section entitled "Plumbing," and there are some hints there, so I might be able to make progress on my own.
How can I add the new command as an option to Magit's context-sensitive push menu, which pops up when I use the capital
P
? This one I have no idea how to do. Can anybody help?