DEV Community

Discussion on: 3 GIT productivity features explained

Collapse
 
jeklah profile image
Jeklah

I was also in the habit of add and then commit -am until I realised the value of having a concise comment about what was done. Can't really have a long comment explaining everything that was done over lots of files, so best git practice is commit small and concise commits with comments often. :)

Collapse
 
codevault profile image
Sergiu Mureşan

Definitely, committing often is much easier to revert afterwards. I hate it when I have to revert a very large commit for just a simple feature x.x