Commit best practice

Can you please explain git commit best practices

Make sure branch is on main, the name master is still okay but people use main more often. Make sure your commit message has meaning. Make sure to ignore files before doing your first commit as they will persist. Try to only commit after a module or component is completed. Push to github often so you don’t lose data in case of crash/ error. Those are the simple ones

1 Like

dont rewrite history on shared with others repository and each commit should comprise of a single unit of work

1 Like