Files
30-seconds-of-code/snippets/create-commit.md
Isabelle Viktoria Maciohsek 62ceb43d81 Add create commit
2021-04-04 14:16:38 +03:00

344 B

title, tags
title tags
Create a commit commit,beginner

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>
git add .
git commit -m "Fix the network bug"
# Creates a commit with the message "Fix the network bug"