Add create commit

This commit is contained in:
Isabelle Viktoria Maciohsek
2021-04-04 14:16:38 +03:00
parent 639f0da36a
commit 62ceb43d81

18
snippets/create-commit.md Normal file
View File

@ -0,0 +1,18 @@
---
title: Create a commit
tags: commit,beginner
---
Creates a new commit containing the staged changes.
- Use `git commit -m <message>` to create a new commit with the specified `<message>`.
```sh
git commit -m <message>
```
```sh
git add .
git commit -m "Fix the network bug"
# Creates a commit with the message "Fix the network bug"
```