Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 932 Bytes

README.md

File metadata and controls

31 lines (22 loc) · 932 Bytes

git-scp

Secure copy your changes

Installation

git clone [email protected]: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 [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: