wiki:merge_multiple_commits_one_commit
Table of Contents
Merge multiple commits into one commit
git rebase -i <after-this-commit>
In this example, <after-this-commit> is either the SHA1 hash or the relative location from the HEAD of the current branch from which commits are analyzed for the rebase command. For example, if the user wishes to view 5 commits from the current HEAD in the past the command is
git rebase -i HEAD~5
Tested on
See also
References
wiki/merge_multiple_commits_one_commit.txt · Last modified: 2021/03/30 13:44 by antisa