Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

change: deprecate git-back #820

Merged
merged 1 commit into from
Feb 25, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions bin/git-back
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 4 additions & 1 deletion man/git-back.1
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -10,6 +10,9 @@
\fBgit\-back\fR [<commitcount>]
.
.SH "DESCRIPTION"
Deprecated\. Use \'git undo \-\-soft [commitcount]\' instead\.
.
.P
Removes the latest commits, and add their changes to your staging area\.
.
.SH "OPTIONS"
Expand Down
6 changes: 4 additions & 2 deletions man/git-back.html

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions man/git-back.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down