yihong0618 和朋友们的频道 头像

消息来源频道

yihong0618 和朋友们的频道

@hyi0618

频道8,612 位成员公开可见0 人在线

yihong0618 和朋友们的频道

成员规模8,612 位成员
在线情况0 人在线
消息总数10,129 条消息
浏览量总数3,285,753 次浏览

在这个频道里搜索消息……

t.me/hyi0618

TIL:
Link: https://github.com/thoughtbot/til/blob/main/git/squashing-commits.md
📌 Two ways of squashing commits
It is handy to squash down your commits before merging your PR with
my-new-cool-feature. You can either squash them down by doing an interactive
rebase like so:
$ git checkout my-new-cool-feature
$ git rebase -i master
This will open up your $EDITOR of choice and you are free to pick and choose
which commits to squash together.
This might be tedious if you have a big number of commits to squash together.
Very tedious. TIL that you can use git merge to squash your commits, all in
one go.
$ git checkout master
$ git merge --squash my-cool-new-feature
This will leave all of your changes staged on master, ready to be committed as
one.