0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

Git squash

Posted at

git squash してみた

gitのコミットが頻雑になったのでスカッシュ実施

コミットが頻雑になってしまったので、コミットを一つにまとめたく、スカッシュしてみました。
以下にまとめます。

git checkout master <- target branch
git merge --squash develop <- source branch
git add .
git commit -m "squash merge"
git push

今まで勘違いしてました。
source branchでスカッシュしてました。
target branchでやらかしてました。

よもや、よもや、不甲斐なし

引用先

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?