mirror of
https://github.com/tj/git-extras.git
synced 2026-09-10 07:26:17 -04:00
git-back: removed
This commit is contained in:
parent
34ba1eb083
commit
e116406ff1
10
Commands.md
10
Commands.md
|
|
@ -2,7 +2,6 @@
|
||||||
- [`git alias`](#git-alias)
|
- [`git alias`](#git-alias)
|
||||||
- [`git archive-file`](#git-archive-file)
|
- [`git archive-file`](#git-archive-file)
|
||||||
- [`git authors`](#git-authors)
|
- [`git authors`](#git-authors)
|
||||||
- [`git back`](#git-back)
|
|
||||||
- [`git browse`](#git-browse)
|
- [`git browse`](#git-browse)
|
||||||
- [`git bulk`](#git-bulk)
|
- [`git bulk`](#git-bulk)
|
||||||
- [`git brv`](#git-brv)
|
- [`git brv`](#git-brv)
|
||||||
|
|
@ -955,15 +954,6 @@ nickl-
|
||||||
Leila Muhtasib
|
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
|
## 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.
|
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.
|
||||||
|
|
|
||||||
13
bin/git-back
13
bin/git-back
|
|
@ -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
|
|
||||||
|
|
@ -332,7 +332,6 @@ zstyle ':completion:*:*:git:*' user-commands $existing_user_commands \
|
||||||
alias:'define, search and show aliases' \
|
alias:'define, search and show aliases' \
|
||||||
archive-file:'export the current head of the git repository to an archive' \
|
archive-file:'export the current head of the git repository to an archive' \
|
||||||
authors:'generate authors report' \
|
authors:'generate authors report' \
|
||||||
back:'undo and stage latest commits' \
|
|
||||||
browse:'open repo website in browser' \
|
browse:'open repo website in browser' \
|
||||||
bug:'create bug branch' \
|
bug:'create bug branch' \
|
||||||
bulk:'run bulk commands' \
|
bulk:'run bulk commands' \
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,6 @@ set __fish_git_extras_commands \
|
||||||
"alias:Define, search and show aliases" \
|
"alias:Define, search and show aliases" \
|
||||||
"archive-file:Export the current HEAD of the git repository to an archive" \
|
"archive-file:Export the current HEAD of the git repository to an archive" \
|
||||||
"authors:Generate authors report" \
|
"authors:Generate authors report" \
|
||||||
"back:Undo and Stage latest commits" \
|
|
||||||
"browse:View the web page for the current repository" \
|
"browse:View the web page for the current repository" \
|
||||||
"brv:List branches sorted by their last commit date" \
|
"brv:List branches sorted by their last commit date" \
|
||||||
"bulk:Run git commands on multiple repositories" \
|
"bulk:Run git commands on multiple repositories" \
|
||||||
|
|
|
||||||
|
|
@ -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 [<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"
|
|
||||||
<commitcount>
|
|
||||||
.
|
|
||||||
.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>
|
|
||||||
|
|
@ -1,126 +0,0 @@
|
||||||
<!DOCTYPE html>
|
|
||||||
<html>
|
|
||||||
<head>
|
|
||||||
<meta http-equiv='content-type' value='text/html;charset=utf8'>
|
|
||||||
<meta name='generator' value='Ronn/v0.7.3 (http://github.com/rtomayko/ronn/tree/0.7.3)'>
|
|
||||||
<title>git-back(1) - Undo and Stage latest commits</title>
|
|
||||||
<style type='text/css' media='all'>
|
|
||||||
/* style: man */
|
|
||||||
body#manpage {margin:0}
|
|
||||||
.mp {max-width:100ex;padding:0 9ex 1ex 4ex}
|
|
||||||
.mp p,.mp pre,.mp ul,.mp ol,.mp dl {margin:0 0 20px 0}
|
|
||||||
.mp h2 {margin:10px 0 0 0}
|
|
||||||
.mp > p,.mp > pre,.mp > ul,.mp > ol,.mp > dl {margin-left:8ex}
|
|
||||||
.mp h3 {margin:0 0 0 4ex}
|
|
||||||
.mp dt {margin:0;clear:left}
|
|
||||||
.mp dt.flush {float:left;width:8ex}
|
|
||||||
.mp dd {margin:0 0 0 9ex}
|
|
||||||
.mp h1,.mp h2,.mp h3,.mp h4 {clear:left}
|
|
||||||
.mp pre {margin-bottom:20px}
|
|
||||||
.mp pre+h2,.mp pre+h3 {margin-top:22px}
|
|
||||||
.mp h2+pre,.mp h3+pre {margin-top:5px}
|
|
||||||
.mp img {display:block;margin:auto}
|
|
||||||
.mp h1.man-title {display:none}
|
|
||||||
.mp,.mp code,.mp pre,.mp tt,.mp kbd,.mp samp,.mp h3,.mp h4 {font-family:monospace;font-size:14px;line-height:1.42857142857143}
|
|
||||||
.mp h2 {font-size:16px;line-height:1.25}
|
|
||||||
.mp h1 {font-size:20px;line-height:2}
|
|
||||||
.mp {text-align:justify;background:#fff}
|
|
||||||
.mp,.mp code,.mp pre,.mp pre code,.mp tt,.mp kbd,.mp samp {color:#131211}
|
|
||||||
.mp h1,.mp h2,.mp h3,.mp h4 {color:#030201}
|
|
||||||
.mp u {text-decoration:underline}
|
|
||||||
.mp code,.mp strong,.mp b {font-weight:bold;color:#131211}
|
|
||||||
.mp em,.mp var {font-style:italic;color:#232221;text-decoration:none}
|
|
||||||
.mp a,.mp a:link,.mp a:hover,.mp a code,.mp a pre,.mp a tt,.mp a kbd,.mp a samp {color:#0000ff}
|
|
||||||
.mp b.man-ref {font-weight:normal;color:#434241}
|
|
||||||
.mp pre {padding:0 4ex}
|
|
||||||
.mp pre code {font-weight:normal;color:#434241}
|
|
||||||
.mp h2+pre,h3+pre {padding-left:0}
|
|
||||||
ol.man-decor,ol.man-decor li {margin:3px 0 10px 0;padding:0;float:left;width:33%;list-style-type:none;text-transform:uppercase;color:#999;letter-spacing:1px}
|
|
||||||
ol.man-decor {width:100%}
|
|
||||||
ol.man-decor li.tl {text-align:left}
|
|
||||||
ol.man-decor li.tc {text-align:center;letter-spacing:4px}
|
|
||||||
ol.man-decor li.tr {text-align:right;float:right}
|
|
||||||
</style>
|
|
||||||
</head>
|
|
||||||
<!--
|
|
||||||
The following styles are deprecated and will be removed at some point:
|
|
||||||
div#man, div#man ol.man, div#man ol.head, div#man ol.man.
|
|
||||||
|
|
||||||
The .man-page, .man-decor, .man-head, .man-foot, .man-title, and
|
|
||||||
.man-navigation should be used instead.
|
|
||||||
-->
|
|
||||||
<body id='manpage'>
|
|
||||||
<div class='mp' id='man'>
|
|
||||||
|
|
||||||
<div class='man-navigation' style='display:none'>
|
|
||||||
<a href="#NAME">NAME</a>
|
|
||||||
<a href="#SYNOPSIS">SYNOPSIS</a>
|
|
||||||
<a href="#DESCRIPTION">DESCRIPTION</a>
|
|
||||||
<a href="#OPTIONS">OPTIONS</a>
|
|
||||||
<a href="#EXAMPLES">EXAMPLES</a>
|
|
||||||
<a href="#AUTHOR">AUTHOR</a>
|
|
||||||
<a href="#REPORTING-BUGS">REPORTING BUGS</a>
|
|
||||||
<a href="#SEE-ALSO">SEE ALSO</a>
|
|
||||||
</div>
|
|
||||||
|
|
||||||
<ol class='man-decor man-head man head'>
|
|
||||||
<li class='tl'>git-back(1)</li>
|
|
||||||
<li class='tc'>Git Extras</li>
|
|
||||||
<li class='tr'>git-back(1)</li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
<h2 id="NAME">NAME</h2>
|
|
||||||
<p class="man-name">
|
|
||||||
<code>git-back</code> - <span class="man-whatis">Undo and Stage latest commits</span>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
<h2 id="SYNOPSIS">SYNOPSIS</h2>
|
|
||||||
|
|
||||||
<p><code>git-back</code> [<commitcount>]</p>
|
|
||||||
|
|
||||||
<h2 id="DESCRIPTION">DESCRIPTION</h2>
|
|
||||||
|
|
||||||
<p> Deprecated. Use 'git undo --soft [commitcount]' instead.</p>
|
|
||||||
|
|
||||||
<p> Removes the latest commits, and add their changes to your staging area.</p>
|
|
||||||
|
|
||||||
<h2 id="OPTIONS">OPTIONS</h2>
|
|
||||||
|
|
||||||
<p> <commitcount></p>
|
|
||||||
|
|
||||||
<p> Number of commits to remove. Defaults to <em>1</em>, thus remove the latest commit.</p>
|
|
||||||
|
|
||||||
<h2 id="EXAMPLES">EXAMPLES</h2>
|
|
||||||
|
|
||||||
<p> Removes the latest commit.</p>
|
|
||||||
|
|
||||||
<pre><code>$ git back
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<p> Remove the latest 3 commits:</p>
|
|
||||||
|
|
||||||
<pre><code>$ git back 3
|
|
||||||
</code></pre>
|
|
||||||
|
|
||||||
<h2 id="AUTHOR">AUTHOR</h2>
|
|
||||||
|
|
||||||
<p>Written by Kenneth Reitz <<a href="mailto:me@kennethreitz.com" data-bare-link="true">me@kennethreitz.com</a>></p>
|
|
||||||
|
|
||||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
|
||||||
|
|
||||||
<p><<a href="https://github.com/tj/git-extras/issues" data-bare-link="true">https://github.com/tj/git-extras/issues</a>></p>
|
|
||||||
|
|
||||||
<h2 id="SEE-ALSO">SEE ALSO</h2>
|
|
||||||
|
|
||||||
<p><<a href="https://github.com/tj/git-extras" data-bare-link="true">https://github.com/tj/git-extras</a>></p>
|
|
||||||
|
|
||||||
|
|
||||||
<ol class='man-decor man-foot man foot'>
|
|
||||||
<li class='tl'></li>
|
|
||||||
<li class='tc'>February 2020</li>
|
|
||||||
<li class='tr'>git-back(1)</li>
|
|
||||||
</ol>
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</body>
|
|
||||||
</html>
|
|
||||||
|
|
@ -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 <<me@kennethreitz.com>>
|
|
||||||
|
|
||||||
## REPORTING BUGS
|
|
||||||
|
|
||||||
<<https://github.com/tj/git-extras/issues>>
|
|
||||||
|
|
||||||
## SEE ALSO
|
|
||||||
|
|
||||||
<<https://github.com/tj/git-extras>>
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
.\" generated with Ronn/v0.7.3
|
.\" generated with Ronn/v0.7.3
|
||||||
.\" http://github.com/rtomayko/ronn/tree/0.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"
|
.SH "NAME"
|
||||||
\fBgit\-extras\fR \- Awesome GIT utilities
|
\fBgit\-extras\fR \- Awesome GIT utilities
|
||||||
|
|
@ -39,9 +39,6 @@ Self update\.
|
||||||
\fBgit\-authors(1)\fR Generate authors report
|
\fBgit\-authors(1)\fR Generate authors report
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.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
|
\fBgit\-browse(1)\fR \fIView the web page for the current repository\fR
|
||||||
.
|
.
|
||||||
.IP "\(bu" 4
|
.IP "\(bu" 4
|
||||||
|
|
|
||||||
|
|
@ -97,7 +97,6 @@
|
||||||
<li> <strong><a class="man-ref" href="git-alias.html">git-alias<span class="s">(1)</span></a></strong> Define, search and show aliases</li>
|
<li> <strong><a class="man-ref" href="git-alias.html">git-alias<span class="s">(1)</span></a></strong> Define, search and show aliases</li>
|
||||||
<li> <strong><a class="man-ref" href="git-archive-file.html">git-archive-file<span class="s">(1)</span></a></strong> Export the current HEAD of the git repository to an archive</li>
|
<li> <strong><a class="man-ref" href="git-archive-file.html">git-archive-file<span class="s">(1)</span></a></strong> Export the current HEAD of the git repository to an archive</li>
|
||||||
<li> <strong><a class="man-ref" href="git-authors.html">git-authors<span class="s">(1)</span></a></strong> Generate authors report</li>
|
<li> <strong><a class="man-ref" href="git-authors.html">git-authors<span class="s">(1)</span></a></strong> Generate authors report</li>
|
||||||
<li> <strong><a class="man-ref" href="git-back.html">git-back<span class="s">(1)</span></a></strong> Undo and Stage latest commits</li>
|
|
||||||
<li> <strong><a class="man-ref" href="git-browse.html">git-browse<span class="s">(1)</span></a></strong> <var>View the web page for the current repository</var></li>
|
<li> <strong><a class="man-ref" href="git-browse.html">git-browse<span class="s">(1)</span></a></strong> <var>View the web page for the current repository</var></li>
|
||||||
<li> <strong><a class="man-ref" href="git-brv.html">git-brv<span class="s">(1)</span></a></strong> List branches sorted by their last commit date</li>
|
<li> <strong><a class="man-ref" href="git-brv.html">git-brv<span class="s">(1)</span></a></strong> List branches sorted by their last commit date</li>
|
||||||
<li> <strong><a class="man-ref" href="git-bulk.html">git-bulk<span class="s">(1)</span></a></strong> Run git commands on multiple repositories</li>
|
<li> <strong><a class="man-ref" href="git-bulk.html">git-bulk<span class="s">(1)</span></a></strong> Run git commands on multiple repositories</li>
|
||||||
|
|
@ -166,7 +165,7 @@
|
||||||
|
|
||||||
<h2 id="AUTHOR">AUTHOR</h2>
|
<h2 id="AUTHOR">AUTHOR</h2>
|
||||||
|
|
||||||
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
<p>Written by Tj Holowaychuk <<a href="mailto:tj@vision-media.ca" data-bare-link="true">tj@vision-media.ca</a>></p>
|
||||||
|
|
||||||
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
<h2 id="REPORTING-BUGS">REPORTING BUGS</h2>
|
||||||
|
|
||||||
|
|
@ -179,7 +178,7 @@
|
||||||
|
|
||||||
<ol class='man-decor man-foot man foot'>
|
<ol class='man-decor man-foot man foot'>
|
||||||
<li class='tl'></li>
|
<li class='tl'></li>
|
||||||
<li class='tc'>May 2020</li>
|
<li class='tc'>August 2020</li>
|
||||||
<li class='tr'>git-extras(1)</li>
|
<li class='tr'>git-extras(1)</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,6 @@ git-extras(1) -- Awesome GIT utilities
|
||||||
- **git-alias(1)** Define, search and show aliases
|
- **git-alias(1)** Define, search and show aliases
|
||||||
- **git-archive-file(1)** Export the current HEAD of the git repository to an archive
|
- **git-archive-file(1)** Export the current HEAD of the git repository to an archive
|
||||||
- **git-authors(1)** Generate authors report
|
- **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-browse(1)** <View the web page for the current repository>
|
||||||
- **git-brv(1)** List branches sorted by their last commit date
|
- **git-brv(1)** List branches sorted by their last commit date
|
||||||
- **git-bulk(1)** Run git commands on multiple repositories
|
- **git-bulk(1)** Run git commands on multiple repositories
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,6 @@
|
||||||
git-alias(1) git-alias
|
git-alias(1) git-alias
|
||||||
git-archive-file(1) git-archive-file
|
git-archive-file(1) git-archive-file
|
||||||
git-authors(1) git-authors
|
git-authors(1) git-authors
|
||||||
git-back(1) git-back
|
|
||||||
git-browse(1) git-browse
|
git-browse(1) git-browse
|
||||||
git-brv(1) git-brv
|
git-brv(1) git-brv
|
||||||
git-bulk(1) git-bulk
|
git-bulk(1) git-bulk
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,6 @@
|
||||||
# A list of the commands in alphabetical order that require has_git_commit(),
|
# 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
|
# and should have it included in the "built" version of the command
|
||||||
git-authors
|
git-authors
|
||||||
git-back
|
|
||||||
git-changelog
|
git-changelog
|
||||||
git-commits-since
|
git-commits-since
|
||||||
git-count
|
git-count
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue