1GIT-SQUASH(1)                     Git Extras                     GIT-SQUASH(1)
2
3
4

NAME

6       git-squash - Import changes from a branch
7

SYNOPSIS

9       git-squash <source-branch|commit ref> [<commit-message>]
10

DESCRIPTION

12       Produce  the  working  tree and index state as if a real merge happened
13       without the commit or merge marks.
14

OPTIONS

16       <source-branch>
17
18       Branch to squash on the current branch.
19
20       <commit reference> A commit reference  (has  to  be  from  the  current
21       branch)  can  also  be  used  as the first argument. A range of commits
22       sha..HEAD will be squashed.
23
24       <commit-message>
25
26       If commit-message is given, commit the squash result.
27

EXAMPLES

29       $ git squash my-other-branch
30       Updating a2740f5..533b19c
31       Fast-forward
32       Squash commit -- not updating HEAD
33        my-changed-file | 1 +
34        1 file changed, 1 insertion(+)
35       $ git commit -m "New commit without a real merge"
36
37       $ git squash HEAD~3 "Commit message"
38

AUTHOR

40       Written by Jesús Espino <jespinog@gmail.com>
41

REPORTING BUGS

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

SEE ALSO

46       <https://github.com/tj/git-extras>
47
48
49
50                                 October 2017                    GIT-SQUASH(1)
Impressum