Skip to content

Latest commit

 

History

History

git

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 

Git

A guide for programming within version control.

Commit Messages

  • Use imperative present tense in the subject line

    [If applied, this commit will] Remove deprecated methods

    [If applied, this commit will] Removed deprecated methods

  • Capitalize the subject line

  • Do not end the subject line with a period

  • Limit the subject line to 50 characters

Collaboration

  • Avoid including files in source control that are specific to your development
  • Avoid merge commits by using a rebase workflow.
  • Rebase your branch frequently to incorporate upstream changes.
  • Squash multiple trivial commits into a single commit.
  • Delete local and remote feature branches after merging.

Configuration

  • Use fast-forward rebase by default instead of merge when you pull remote changes:

    git config --global pull.ff only
    

Learning Materials

Additional Reading