From 62dd4a2258d896a98e4f2db76e858036ebcb0bc4 Mon Sep 17 00:00:00 2001 From: CJ Date: Mon, 27 Apr 2015 14:44:15 +0800 Subject: [PATCH] Updated documentation for git-scp and slight feature change --- AUTHORS | 1 + bin/git-scp | 2 +- man/git-extras.1 | 3 +++ man/git-extras.html | 1 + man/git-extras.md | 1 + man/index.txt | 1 + 6 files changed, 8 insertions(+), 1 deletion(-) diff --git a/AUTHORS b/AUTHORS index ad25458..b2481f5 100644 --- a/AUTHORS +++ b/AUTHORS @@ -14,6 +14,7 @@ Patches and Suggestions ``````````````````````` - Mark Eissler +- Chern Jie - Kenneth Reitz - Aggelos Orfanakos - Jonathan "Duke" Leto diff --git a/bin/git-scp b/bin/git-scp index ae9737a..7481b60 100755 --- a/bin/git-scp +++ b/bin/git-scp @@ -109,7 +109,7 @@ function scp_and_stage _sanitize $list && _info Pushing to $remote \($(git config remote.$remote.url)\) && rsync -rlDv --files-from=$_TMP ./ "$(git config remote.$remote.url)/" && - git add $list && + git add --force $list && rm $_TMP fi diff --git a/man/git-extras.1 b/man/git-extras.1 index 2c45ae7..af45b0d 100644 --- a/man/git-extras.1 +++ b/man/git-extras.1 @@ -126,6 +126,9 @@ Self update\. \fBgit\-reset\-file(1)\fR Reset one file . .IP "\(bu" 4 +\fBgit\-scp(1)\fR Copy files from the current working tree to the working directory of a remote repository +. +.IP "\(bu" 4 \fBgit\-setup(1)\fR Set up a git repository . .IP "\(bu" 4 diff --git a/man/git-extras.html b/man/git-extras.html index 406d104..88d35ec 100644 --- a/man/git-extras.html +++ b/man/git-extras.html @@ -126,6 +126,7 @@
  • git-rename-tag(1) Rename a tag
  • git-repl(1) git read-eval-print-loop
  • git-reset-file(1) Reset one file
  • +
  • git-scp(1) Copy files from the current working tree to the working directory of a remote repository
  • git-setup(1) Set up a git repository
  • git-show-merged-branches(1) Show merged branches
  • git-show-tree(1) show branch tree of commit history
  • diff --git a/man/git-extras.md b/man/git-extras.md index 842df72..2c0eed7 100644 --- a/man/git-extras.md +++ b/man/git-extras.md @@ -53,6 +53,7 @@ git-extras(1) -- Awesome GIT utilities - **git-rename-tag(1)** Rename a tag - **git-repl(1)** git read-eval-print-loop - **git-reset-file(1)** Reset one file + - **git-scp(1)** Copy files from the current working tree to the working directory of a remote repository - **git-setup(1)** Set up a git repository - **git-show-merged-branches(1)** show merged branches - **git-show-tree(1)** show branch tree of commit history diff --git a/man/index.txt b/man/index.txt index beb9920..5efb7ee 100644 --- a/man/index.txt +++ b/man/index.txt @@ -32,6 +32,7 @@ git-release(1) git-release git-rename-tag(1) git-rename-tag git-repl(1) git-repl git-reset-file(1) git-reset-file +git-scp(1) git-scp git-setup(1) git-setup git-show-merged-branches(1) git-show-merged-branches git-show-tree(1) git-show-tree