-
You will use squash commit a lot because it make your git flow more organize or you can change the commit message.
-
Command to use squash commit:
$ git rebase -i [branch name]
-
After that change all the
pick
on each commit tosquash or s
except the first one. All the change on your code won't lost but you can change the message are a collection of all commit message were changed tosquash
-
Finaly, using squashed commit
$ git push -f
to overwrite the newest commit with the oldest commit.
khanhtruong / qna Goto Github PK
View Code? Open in Web Editor NEWThis repo is use for learning golang