1GIT-BACK(1) Git Extras GIT-BACK(1)
2
3
4
6 git-back - Undo and Stage latest commits
7
9 git-back [<commitcount>]
10
12 Removes the latest commits, and add their changes to your staging area.
13
15 <commitcount>
16
17 Number of commits to remove. Defaults to 1, thus remove the latest com‐
18 mit.
19
21 Removes the latest commit.
22
23
24
25 $ git back
26
27
28
29 Remove the latest 3 commits:
30
31
32
33 $ git back 3
34
35
36
38 Written by Kenneth Reitz <me@kennethreitz.com>
39
41 <https://github.com/tj/git-extras/issues>
42
44 <https://github.com/tj/git-extras>
45
46
47
48 October 2017 GIT-BACK(1)