W dniu 10.11.2026 o 22:26, Anton Antimo pisze:
> But then this week I spend three days cleaning things
> up. That's no good, man. What for? Nobody is watching my repository.
That is pure nonsense for me. In Git you can easy create "working branch" for each of your task. Before merge you can "rebase" with master branch (in the case there were commits or merge in to master in the middle time). Quote:
> git checkout feature-branch
> git rebase master
, source: "Programista" no. 4/2025/119, art. under title "Repozytorium Bez Chaosu", page 7.
Then you can easily "squash" all commits in your "working branch". In order to open interactive session, Quote:
> git rebase -i HEAD~4
, source: ibidem, but page 8.
Then you can merge your "working branch" as single commit.
As you can see this require complete 0 (literally "zero") overhead, but require little discipline with branch creation and preparation for merge to the master branch.
NOTE: I DO NOT CHECKED ABOVE IN PRACTISE, BECAUSE FOR NOW I AM UNEMPLOYED, BUT I LEARNED IT FROM "PROGRAMISTA" MAGAZINE (IBIDEM).
--
Z totaliztycznym salutem!
Jacek Marcin Jaworski, Pruszcz Gd., woj. Pomorskie, Polska 🇵🇱, UE 🇪🇺;
Pryw. s. WWW: <https://energokod.gda.pl>; Pryw. tel.: +48-609-170-742;
Netykieta: <https://energokod.gda.pl/Netykieta.html>.