jimymodi / git-scp

Secure copy your changes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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:

About

Secure copy your changes

License:MIT License


Languages

Language:Shell 100.0%