OurBigBook About$ Donate
 Sign in Sign up

Git tips / Merge two or more commits into one

Ciro Santilli (@cirosantilli, 37) ... Version control List of version control systems Git Git tips How to modify the commit tree git rebase 101
Updated 2025-07-16  0 By others on same topic  0 Discussions Create my own version
Before
7 my-feature HEAD
|
6
|
5 master
|
4
|
3
|
2
|
1
Oh, commit 6 was just a temporary step, should be put together with commit 7:
git rebase -i HEAD~2
Mark 6 to be squashed.
After:
67 my-feature HEAD
|
5 master
|
4
|
3
|
2
|
1
Better now, ready to push.

 Ancestors (12)

  1. git rebase 101
  2. How to modify the commit tree
  3. Git tips
  4. Git
  5. List of version control systems
  6. Version control
  7. Software
  8. Computer
  9. Information technology
  10. Area of technology
  11. Technology
  12.  Home

 View article source

 Discussion (0)

New discussion

There are no discussions about this article yet.

 Articles by others on the same topic (0)

There are currently no matching articles.
  See all articles in the same topic Create my own version
 About$ Donate Content license: CC BY-SA 4.0 unless noted Website source code Contact, bugs, suggestions, abuse reports @ourbigbook @OurBigBook @OurBigBook