git squash commits


 See rebase - Squash my last X commits together using Git - Stack Overflow

git rebase -i <after-this-commit>


<after-this-commit> is commit X+1 i.e. parent of the oldest commit you want to squash.


  1. This brings up the editor
  2. Choose "pick" on the second commit
  3. Choose "squash" on the subsequent commits




Comments

Popular posts from this blog

QTreeView and QTableView dynamic changes

C++ strings and string_view