buguibu / ios-notes-issues-lessons

Notes, issues and lessons about my iOS development experience
2 stars 0 forks source link

Rebase commits in a single one for better PR #4

Open buguibu opened 5 years ago

buguibu commented 5 years ago

First need to know the count of commits done in the current branch with: git rev-list --count HEAD ^develop Then use the number for start the rebase with: git rebase -i HEAD~20 It opens the rebase editor where you will see all the commits ids & message starting from the oldest one so mark with s the ones that you want to merge with the previous one.