1 item with this tag

Oct 18, 2026·8 min read

Awesome Git workflow

Squash commit Info Purpose: Combine N commit into one, and make it for new message Reference resource Git squash rebase - Vietnamese StackOverFlow - How do I squash my last N commits together? Method 1: rebase with -i flag git rebase -i <hash-id-you-want-to-squash> Tip Change the secondary commit from pick to squash, save and continue for set new message for commit Method 2: reset with --soft flag git reset --soft <hash-id-you-want-to-squash git commit -m "New message represent for twice or N commit" Delete branch Info Follow the article to understand how we can remove the branch in local and remote, use -d flag at: Git Delete Remote Branch – How to Remove a Remote Branch in Git For locally You can use -d with command git branch # e.