Files
30-seconds-of-code/snippets/git/s/create-commit.md
Angelos Chalaris 4d0316a062 Update covers
2023-05-07 22:25:00 +03:00

461 B

title, type, language, tags, cover, dateModified
title type language tags cover dateModified
Create a commit snippet git
commit
cave-explorer 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"