Image by seagul from Pixabay

TIL Git push --atomic

For continuous integration puropses, I need to be sure some of my commits are all done together. If some fail for some reasons, I have to reconciliate everything t o be sure it is ok. After some research, I found a git command that helped me a lot: 

git push --atomic origin branch1 branch2 ...

 The idea with this command is to have only one commit doing multiple things. It can help to merge, tag and add a note in a single command for example. 

For more informations, you can read this github article. 

 

Enjoy!