Saturday, 2 March 2019

Right way using Git

https://deepsource.io/blog/git-best-practices/

1.
Conventions suggested:
  1. Make clean, single-purpose commits
  2. Write meaningful commit messages
    feat: add beta sequence
     ^--^ ^---------------^
     |       |                      | +-> Summary in present tense.
     | +-------> Type: chore, docs, feat, fix, refactor, style, or test.
  3. Commit early, commit often
  4. Don’t alter published history
  5. Don’t commit generated files
2.
For number 1, if I found other bug, while I am fixing something, I log it to Jira to fix it later. It is kind of stacking recursive issues found in the bug tracking system. See Stack for work flow.

3.
For number 2, yes definitely good idea. Especially entering:
  • issue tracking ticket number
  • type of change
  • and description
4.
For number 3,4,5, I wasn't impressed much. But still true.

No comments:

Post a Comment