Skip to content

carsonreinke/git-scp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

3f3a8a2 · Sep 2, 2022

History

20 Commits
Sep 15, 2016
Sep 14, 2016
Jan 17, 2021

Repository files navigation

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: