diff --git a/bin/git-back b/bin/git-back index 446209a..c8353d3 100755 --- a/bin/git-back +++ b/bin/git-back @@ -1,5 +1,7 @@ #!/usr/bin/env bash +echo >&2 "Deprecated. Use 'git undo --soft [commitcount]' instead." + if test $# -eq 0; then git reset --soft HEAD~1 else diff --git a/man/git-back.1 b/man/git-back.1 index ca873a0..223bc2e 100644 --- a/man/git-back.1 +++ b/man/git-back.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-BACK" "1" "October 2017" "" "Git Extras" +.TH "GIT\-BACK" "1" "February 2020" "" "Git Extras" . .SH "NAME" \fBgit\-back\fR \- Undo and Stage latest commits @@ -10,6 +10,9 @@ \fBgit\-back\fR [] . .SH "DESCRIPTION" +Deprecated\. Use \'git undo \-\-soft [commitcount]\' instead\. +. +.P Removes the latest commits, and add their changes to your staging area\. . .SH "OPTIONS" diff --git a/man/git-back.html b/man/git-back.html index 3ed0e15..938d53a 100644 --- a/man/git-back.html +++ b/man/git-back.html @@ -80,6 +80,8 @@

DESCRIPTION

+

Deprecated. Use 'git undo --soft [commitcount]' instead.

+

Removes the latest commits, and add their changes to your staging area.

OPTIONS

@@ -102,7 +104,7 @@

AUTHOR

-

Written by Kenneth Reitz <me@kennethreitz.com>

+

Written by Kenneth Reitz <me@kennethreitz.com>

REPORTING BUGS

@@ -115,7 +117,7 @@
  1. -
  2. October 2017
  3. +
  4. February 2020
  5. git-back(1)
diff --git a/man/git-back.md b/man/git-back.md index dbe606f..7cd2db6 100644 --- a/man/git-back.md +++ b/man/git-back.md @@ -7,6 +7,8 @@ git-back(1) -- Undo and Stage latest commits ## DESCRIPTION + Deprecated. Use 'git undo --soft [commitcount]' instead. + Removes the latest commits, and add their changes to your staging area. ## OPTIONS