Git

Git squash part 02

2020-09-17  本文已影响0人  JaedenKil

We can use command git rebase -i to squash commits.
However, there is another way:

git reset --soft ${commitId}
git add -u
git commit --amend "xxx"

OR

git add -u
git commit --amend -m "XXX"
上一篇下一篇

猜你喜欢

热点阅读