This article introduces the concept and syntax of commit and commit range in Git, as well as commonly used Git commands such as git rev-list and git rev-parse. In addition, several methods for merging multiple commits are described, including git cherry-pick, git reset, and git rebase. Finally, the concept of merge base and the related command git merge-base are also introduced.
This article is transferred from: https://hsiaofongw.notion.site/Git-commit-commit-range-e2561c9d88c041b6ad45f0589d136be3
This site is only for collection, and the copyright belongs to the original author.