📘
Engineering Communications Program Team Projects
Open Source Guide
Open Source Guide
  • Welcome
  • Creators
    • Reasons to create
    • Create a repository
      • Set up documentation
        • README
        • CONTRIBUTING
        • License
    • Name your project
    • Build a community
      • Communication Mediums
        • Mass Notifications
        • Formal Exchanges
        • Real-Time Messaging
      • Code of Conduct
    • Additional Resources
  • Contributors
    • Reasons to contribute
    • Find a project
      • GitHub Trending
    • Ways to contribute
    • Choose an issue
    • Read supporting documentation
    • Git Workflow
      • Fork a project
      • Create a branch
      • Add a commit
      • Submit a pull request
      • Review code
Powered by GitBook
On this page
  • What is a commit?
  • How to commit code?
  1. Contributors
  2. Git Workflow

Add a commit

PreviousCreate a branchNextSubmit a pull request

Last updated 3 years ago

What is a commit?

A commit is associated with a version of code. Typically commits are done every time a new feature is added or an update to an existing one. It is good practice to provide a description of the feature that was added or updated.

How to commit code?

git commit -m "feature description"

Above is an example of a commit on git. The commit number is c51512f and the green lines represent additions.