Skip to content

carsonreinke/git-scp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 

Repository files navigation

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: