14
The people here where I work, for a certain period of time, used to not care about the messages that they wrote when making a git commit
around here.
It seems that Git was simply "a place to save things so as not to lose the changes".
Hence, when I needed on a given day to check on log
of git
when a certain change was made to make a rollback, Guess ... The messages were all like this:
commit f337a26f387b1424e977520399c14c933d63bb90
Author: Fulano
Date: Wed Apr 20 16:10:43 2016 -0300
All
commit 01ef74e75a6a91e20d325e2789671f51cd26463e
Author: Fulano
Date: Wed Apr 20 14:41:46 2016 -0300
All
commit d13ec87f63d0149b005a24a8584819100fd7085e
Author: Fulano
Date: Wed Apr 20 14:13:41 2016 -0300
últimas alterações
commit 4545645sad364sdfsd4234343333333asd
Author: Fulano
Date: Wed Apr 20 14:13:41 2016 -0300
ddddd
commit 3158b4ce189a644020ac97b51333375f6e4c2742
Author: Wallace de Souza Vizerra <[email protected]>
Date: Fri Apr 15 15:24:45 2016 -0300
:)
That is, the descriptions like "sending changes", "all" or "sending everything" do not help at all to describe what was done - if that message serves exactly to describe what was done, but it was the reason I imagined that it would exist in the git-commit
.
From that day that I had this problem, we agreed that at the very least we would describe some of the changes that were made in the commit. I don’t know if this is the way, but it improved something after that.
So, to get more organization and standardization of my versions here, I would like to know if there is any pattern to be followed (I mean, suggested) so that it can be adopted in these messages.
How should I write my messages commit?
Yeah, that last commit was mine... but look at that one
Fri
... I mean, it was a Friday... it’s totally understandable, kkkkkkk– Wallace Maxters
I believe the pattern is: To detail as much as possible what has been done, imagining that you are a person who in the future needs to know this. Perhaps also reference the documentation of the functionality (Use Case, History ...) if it exists.
– mau humor
@Wallacemaxters did not understand why to protect this question. It was only accessed 100x. And the new answer, although initially having problems, complements the answer that was already there. See http://meta.pt.stackoverflow.com/q/2430/6036
– Daniel Falbel