diff --git a/Commands.md b/Commands.md index 7055544..ed6da60 100644 --- a/Commands.md +++ b/Commands.md @@ -2,7 +2,6 @@ - [`git alias`](#git-alias) - [`git archive-file`](#git-archive-file) - [`git authors`](#git-authors) - - [`git back`](#git-back) - [`git browse`](#git-browse) - [`git bulk`](#git-bulk) - [`git brv`](#git-brv) @@ -955,15 +954,6 @@ nickl- Leila Muhtasib ``` -## git back - -Removes the latest commits, and add their changes to your staging area. - -``` -$ git back # Removes the latest commit. -$ git back 3 # Remove the latest 3 commits. -``` - ## git changelog Generates a changelog from git(1) tags (annotated or lightweight) and commit messages. Existing changelog files with filenames that begin with _Change_ or _History_ will be identified automatically with a case insensitive match pattern and existing content will be appended to the new output generated--this behavior can be disabled by specifying the prune option (-p|--prune-old). The generated file will be opened in **$EDITOR** when set. diff --git a/bin/git-back b/bin/git-back deleted file mode 100755 index c8353d3..0000000 --- a/bin/git-back +++ /dev/null @@ -1,13 +0,0 @@ -#!/usr/bin/env bash - -echo >&2 "Deprecated. Use 'git undo --soft [commitcount]' instead." - -if test $# -eq 0; then - git reset --soft HEAD~1 -else - if `echo $1 | grep -q [^[:digit:]]`; then - echo "$1 is not a number" 1>&2 - else - git reset --soft HEAD~$1 - fi -fi diff --git a/etc/git-extras-completion.zsh b/etc/git-extras-completion.zsh index a2f958a..1abd8ee 100644 --- a/etc/git-extras-completion.zsh +++ b/etc/git-extras-completion.zsh @@ -332,7 +332,6 @@ zstyle ':completion:*:*:git:*' user-commands $existing_user_commands \ alias:'define, search and show aliases' \ archive-file:'export the current head of the git repository to an archive' \ authors:'generate authors report' \ - back:'undo and stage latest commits' \ browse:'open repo website in browser' \ bug:'create bug branch' \ bulk:'run bulk commands' \ diff --git a/etc/git-extras.fish b/etc/git-extras.fish index 33dbcf7..58e2f19 100644 --- a/etc/git-extras.fish +++ b/etc/git-extras.fish @@ -3,7 +3,6 @@ set __fish_git_extras_commands \ "alias:Define, search and show aliases" \ "archive-file:Export the current HEAD of the git repository to an archive" \ "authors:Generate authors report" \ - "back:Undo and Stage latest commits" \ "browse:View the web page for the current repository" \ "brv:List branches sorted by their last commit date" \ "bulk:Run git commands on multiple repositories" \ diff --git a/man/git-back.1 b/man/git-back.1 deleted file mode 100644 index 223bc2e..0000000 --- a/man/git-back.1 +++ /dev/null @@ -1,57 +0,0 @@ -.\" generated with Ronn/v0.7.3 -.\" http://github.com/rtomayko/ronn/tree/0.7.3 -. -.TH "GIT\-BACK" "1" "February 2020" "" "Git Extras" -. -.SH "NAME" -\fBgit\-back\fR \- Undo and Stage latest commits -. -.SH "SYNOPSIS" -\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" - -. -.P -Number of commits to remove\. Defaults to \fI1\fR, thus remove the latest commit\. -. -.SH "EXAMPLES" -Removes the latest commit\. -. -.IP "" 4 -. -.nf - -$ git back -. -.fi -. -.IP "" 0 -. -.P -Remove the latest 3 commits: -. -.IP "" 4 -. -.nf - -$ git back 3 -. -.fi -. -.IP "" 0 -. -.SH "AUTHOR" -Written by Kenneth Reitz <\fIme@kennethreitz\.com\fR> -. -.SH "REPORTING BUGS" -<\fIhttps://github\.com/tj/git\-extras/issues\fR> -. -.SH "SEE ALSO" -<\fIhttps://github\.com/tj/git\-extras\fR> diff --git a/man/git-back.html b/man/git-back.html deleted file mode 100644 index 938d53a..0000000 --- a/man/git-back.html +++ /dev/null @@ -1,126 +0,0 @@ - - - - - - git-back(1) - Undo and Stage latest commits - - - - -
- - - -
    -
  1. git-back(1)
  2. -
  3. Git Extras
  4. -
  5. git-back(1)
  6. -
- -

NAME

-

- git-back - Undo and Stage latest commits -

- -

SYNOPSIS

- -

git-back [<commitcount>]

- -

DESCRIPTION

- -

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

- -

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

- -

OPTIONS

- -

<commitcount>

- -

Number of commits to remove. Defaults to 1, thus remove the latest commit.

- -

EXAMPLES

- -

Removes the latest commit.

- -
$ git back
-
- -

Remove the latest 3 commits:

- -
$ git back 3
-
- -

AUTHOR

- -

Written by Kenneth Reitz <me@kennethreitz.com>

- -

REPORTING BUGS

- -

<https://github.com/tj/git-extras/issues>

- -

SEE ALSO

- -

<https://github.com/tj/git-extras>

- - -
    -
  1. -
  2. February 2020
  3. -
  4. git-back(1)
  5. -
- -
- - diff --git a/man/git-back.md b/man/git-back.md deleted file mode 100644 index 7cd2db6..0000000 --- a/man/git-back.md +++ /dev/null @@ -1,40 +0,0 @@ -git-back(1) -- Undo and Stage latest commits -============================================ - -## SYNOPSIS - -`git-back` [<commitcount>] - -## DESCRIPTION - - Deprecated. Use 'git undo --soft [commitcount]' instead. - - Removes the latest commits, and add their changes to your staging area. - -## OPTIONS - - <commitcount> - - Number of commits to remove. Defaults to *1*, thus remove the latest commit. - -## EXAMPLES - - Removes the latest commit. - - $ git back - - Remove the latest 3 commits: - - $ git back 3 - -## AUTHOR - -Written by Kenneth Reitz <> - -## REPORTING BUGS - -<> - -## SEE ALSO - -<> diff --git a/man/git-extras.1 b/man/git-extras.1 index d254789..561a99d 100644 --- a/man/git-extras.1 +++ b/man/git-extras.1 @@ -1,7 +1,7 @@ .\" generated with Ronn/v0.7.3 .\" http://github.com/rtomayko/ronn/tree/0.7.3 . -.TH "GIT\-EXTRAS" "1" "May 2020" "" "Git Extras" +.TH "GIT\-EXTRAS" "1" "August 2020" "" "Git Extras" . .SH "NAME" \fBgit\-extras\fR \- Awesome GIT utilities @@ -39,9 +39,6 @@ Self update\. \fBgit\-authors(1)\fR Generate authors report . .IP "\(bu" 4 -\fBgit\-back(1)\fR Undo and Stage latest commits -. -.IP "\(bu" 4 \fBgit\-browse(1)\fR \fIView the web page for the current repository\fR . .IP "\(bu" 4 diff --git a/man/git-extras.html b/man/git-extras.html index 21a5252..9688439 100644 --- a/man/git-extras.html +++ b/man/git-extras.html @@ -97,7 +97,6 @@
  • git-alias(1) Define, search and show aliases
  • git-archive-file(1) Export the current HEAD of the git repository to an archive
  • git-authors(1) Generate authors report
  • -
  • git-back(1) Undo and Stage latest commits
  • git-browse(1) View the web page for the current repository
  • git-brv(1) List branches sorted by their last commit date
  • git-bulk(1) Run git commands on multiple repositories
  • @@ -166,7 +165,7 @@

    AUTHOR

    -

    Written by Tj Holowaychuk <tj@vision-media.ca>

    +

    Written by Tj Holowaychuk <tj@vision-media.ca>

    REPORTING BUGS

    @@ -179,7 +178,7 @@
    1. -
    2. May 2020
    3. +
    4. August 2020
    5. git-extras(1)
    diff --git a/man/git-extras.md b/man/git-extras.md index 8fa0424..74921ca 100644 --- a/man/git-extras.md +++ b/man/git-extras.md @@ -24,7 +24,6 @@ git-extras(1) -- Awesome GIT utilities - **git-alias(1)** Define, search and show aliases - **git-archive-file(1)** Export the current HEAD of the git repository to an archive - **git-authors(1)** Generate authors report - - **git-back(1)** Undo and Stage latest commits - **git-browse(1)** - **git-brv(1)** List branches sorted by their last commit date - **git-bulk(1)** Run git commands on multiple repositories diff --git a/man/index.txt b/man/index.txt index 2f1fae2..f1ff782 100644 --- a/man/index.txt +++ b/man/index.txt @@ -2,7 +2,6 @@ git-alias(1) git-alias git-archive-file(1) git-archive-file git-authors(1) git-authors -git-back(1) git-back git-browse(1) git-browse git-brv(1) git-brv git-bulk(1) git-bulk diff --git a/need_git_commit b/need_git_commit index e2515d3..f6dbc84 100644 --- a/need_git_commit +++ b/need_git_commit @@ -1,7 +1,6 @@ # A list of the commands in alphabetical order that require has_git_commit(), # and should have it included in the "built" version of the command git-authors -git-back git-changelog git-commits-since git-count