3 ms·
git push && ssh wherever 'cd /wherever; git pull; [touch or restart something]'
by petercooper 17y ago
git push && ssh wherever 'cd /wherever; git pull; [touch or restart something]'
- jrockway 17y agoI tend to "git pull --rebase", so that local config changes "stay on top" and don't become a merge commit. In general, I recommend against "git pull" unless you are intentionally trying to merge something. (Fast-forwards are a special case of merging.)
- petercooper 17y agoGood point, although I maintain different environment configurations separate from the code base (or .gitignore anything that doesn't fall into that).