User Tools

Site Tools


wiki:merge_multiple_commits_one_commit

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

Except where otherwise noted, content on this wiki is licensed under the following license: CC0 1.0 Universal
CC0 1.0 Universal Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki