Secure copy your changes
git clone [email protected]:carsonreinke/git-scp.git
cp git-scp /usr/local/bin
git scp <username@hostname> <target-dir> <commits> #Changes for HEAD~<commits>..HEAD
git scp <username@hostname> <target-dir> origin
git scp <username@hostname> <target-dir> status
##Examples
Replace N with a number git scp [email protected] /home/www/ 5
will use a git log of HEAD~5..HEAD
and deploy the modifications to the target
Using origin
will specify origin..HEAD
.
Using status
will specificy current git status
After several Gist versions going, finally decided to just put this in a repo, thanks @codeaid:
- https://gist.github.com/codeaid/5a97956bb0bacd6a38d5
- https://gist.github.com/carsonreinke/3c42730a80dba02e7940d38b193c791e
- https://gist.github.com/sgorman/9054fce3dd78908cfacfcb25ef0a53d0
- https://gist.github.com/tanakahisateru/1372816