GIT−SQUASH - Online Linux Manual PageSection : 1
Updated : October 2020
Source :
Note : Git Extras

NAMEgit−squash − squash N last changes up to a ref´ed commit

SYNOPSISgit−squash [<−−squash−msg>] <source−branch|commit ref> [<commit−message>]

DESCRIPTIONSquash the N last changes in the current branch, where N is the range of commits from the given ref up to HEAD.

OPTIONS<source−branch> Branch to squash on the current branch. <commit reference> A commit reference (has to be from the current branch) can also be used as the first argument. A range of commits sha..HEAD will be squashed. <−−squash−msg> Commit the squash result with the concatenated squashed committed messages. This option can not be used together with <commit−message>. <commit−message> If commit−message is given, commit the squashed result, otherwise the squash remains just added to the index and is not committed.

EXAMPLES # squash changes and follow up with separate commit step $ git squash my−other−branch Updating a2740f5..533b19c Fast−forward Squash commit −− not updating HEAD my−changed−file | 1 + 1 file changed, 1 insertion(+) $ git commit −m "New commit without a real merge" # squash and commit with given message $ git squash HEAD~3 "Commit message" # squash and commit and concatenate all messages $ git squash −−squash−msg @~3

AUTHORWritten by Jesús Espino <jespinog@gmail.com>

REPORTING BUGS<https://github.com/tj/git−extras/issues>

SEE ALSO<https://github.com/tj/git−extras>
0
Johanes Gumabo
Data Size   :   5,825 byte
man-git-squash.1Build   :   2024-12-05, 20:55   :  
Visitor Screen   :   x
Visitor Counter ( page / site )   :   2 / 181,320
Visitor ID   :     :  
Visitor IP   :   3.129.73.6   :  
Visitor Provider   :   AMAZON-02   :  
Provider Position ( lat x lon )   :   39.962500 x -83.006100   :   x
Provider Accuracy Radius ( km )   :   1000   :  
Provider City   :   Columbus   :  
Provider Province   :   Ohio ,   :   ,
Provider Country   :   United States   :  
Provider Continent   :   North America   :  
Visitor Recorder   :   Version   :  
Visitor Recorder   :   Library   :  
Online Linux Manual Page   :   Version   :   Online Linux Manual Page - Fedora.40 - march=x86-64 - mtune=generic - 24.12.05
Online Linux Manual Page   :   Library   :   lib_c - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Online Linux Manual Page   :   Library   :   lib_m - 24.10.03 - march=x86-64 - mtune=generic - Fedora.40
Data Base   :   Version   :   Online Linux Manual Page Database - 24.04.13 - march=x86-64 - mtune=generic - fedora-38
Data Base   :   Library   :   lib_c - 23.02.07 - march=x86-64 - mtune=generic - fedora.36

Very long time ago, I have the best tutor, Wenzel Svojanovsky . If someone knows the email address of Wenzel Svojanovsky , please send an email to johanes_gumabo@yahoo.co.id .
If error, please print screen and send to johanes_gumabo@yahoo.co.id
Under development. Support me via PayPal.