are a way to communicate how people should contribute. For contributors, the guidelines help them verify that they're submitting well-formed pull requests and opening useful issues. - GitHub
straight to the point • Proper references • Write messages that you can understand a year down the line • Commit message length can vary from two sentences to multiple paragraphs
commit is the author • It’s always OK to use someone's commit in your project but with authorship • It’s NOT OK to change authorship of a commit git commit --amend --author="Name <email>"
• The part modified by the commit should have a similar structure to the existing project • Automatically maintains authorship • Used extensively in Linux kernel and AOSP development
Better readability of commit history • Always suggested while making a PR for a single issue git reset --soft HEAD~X git commit –m “New commit message”
your help with to decide which changes to incorporate in the final merge. Often, merge conflicts happen when people make different changes to the same line of the same file, or when one person edits a file and another person deletes the same file.