Git commit best practices

Make small commits

Commit complete and well tested code

Write good commit messages

Use the imperative style in the subject line

  • fixed a bug
  • changed a few things
  • removing method
  • more code refactoring
  • If applied, this commit will fix a bug
  • if applied, this commit will remove method
  • if applied, this commit will update markup

Use your code editor for long commit messages

learn to use Git with command line first

Read the Pro Git book

--

--

--

Love podcasts or audiobooks? Learn on the go with our new app.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Nawar Yossef

Nawar Yossef

More from Medium

You don’t need to pull before rebase to an origin branch.

9 Pro Tips for Developer Productivity

Developers & Fixer Uppers

Top 10 git commands for developers