Thursday, January 21, 2021

[Git] How often do I commit and push?

I "commit" every time when I finish a single task. It can be anything small or big depending on the purpose of the task. It can mean a block of code to add, a few comments to add, deleting an outdated function, adding several new scripts, or changing the outputs. The rule of thumb is the "finished" task. You should be able to run the code without bugs. The frequency can be half an hour or 1-2 hours.

I have a final commit check and push every time when I close the project. Since I am working on the repo on my own right now, I usually push once or twice a day. 


No comments:

Post a Comment