Trusted answers to developer questions
Trusted Answers to Developer Questions

Related Tags

code
commit
github
git

How do you commit​ code in Git?

Educative Answers Team

It is a good approach to regularly save your working code in your local repository. In fact, programmers make it a habit to commit the code to the local repository whenever they leave their work desk.

svg viewer

The commit command in git bundles up the working repository of the user and updates it in the local repository. See the command below:

git commit -m "IOS Bug Fixed!"

The -m flag commits the working repository with a message that is useful for looking back at past commits.

RELATED TAGS

code
commit
github
git
Copyright ©2022 Educative, Inc. All rights reserved
RELATED COURSES

View all Courses

Keep Exploring