ChatGPT start to scare me (in a good sense). It really knows git, and it knows it better than me. This solution is absolutely from it, I had had no idea that there is a fast way.