Skip to content

Latest commit

 

History

History
6 lines (5 loc) · 235 Bytes

commit_all_code_in_single_commit.md

File metadata and controls

6 lines (5 loc) · 235 Bytes

Commit all code in single sommit

Undo all the commits, merges, rebases etc. but PRESERVE the code and then we can commit the code in one single commit

git reset $(git merge-base master $(git rev-parse --abbrev-ref HEAD))