/git-scp

Secure copy your changes

Primary LanguageShellMIT LicenseMIT

git-scp

Secure copy your changes

Installation

git clone git@github.com:carsonreinke/git-scp.git
cp git-scp /usr/local/bin

Usage

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 deploy@myhost.com /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: