Files
30-seconds-of-code/snippets/create-commit.md
2022-05-04 19:36:40 +03:00

517 B

title, tags, expertise, author, cover, firstSeen, lastUpdated
title tags expertise author cover firstSeen lastUpdated
Create a commit commit beginner maciv blog_images/baloons-field.jpg 2021-04-04T14:16:38+03:00 2021-04-13T21:10:59+03:00

Creates a new commit containing the staged changes.

  • Use git commit -m <message> to create a new commit with the specified <message>.
git commit -m <message>
# Make some changes to files
git add .
git commit -m "Fix the network bug"
# Creates a commit with the message "Fix the network bug"