Git atomic commits

preview_player
Показать описание
In this video, I will show you what atomic commits are, why you should use them and how you can use a (Git) workflow that favors atomic commits.

#Git
Рекомендации по теме
Комментарии
Автор

Ahh, dang it! I'm learning the ropes with git, working on a little project using two branches: main and dev. I wanted to mock up, do some stuff and then add a new feature, so I branched off dev, made a couple of commits and then merged the feat branch onto dev... If only I knew about merge --squash, it would have been a perfect occasion to use it! Well.. now I know :D thank you very much!

RussellTeapot
Автор

Thanks for this video, really useful for me!

marcianszlovak
Автор

Nice idea!

I tend to do a lot of rebases and amends in my feature branches in order to get concise commits. Using a dirty branch is something I might try instead!

jocketf
Автор

Cherry-picking the commit at the end will result in a duplicate commit once you merge feature2 into master. Did you mean to cherry-pick into feature2-dirty?

hackel
welcome to shbcf.ru