Prepare repository for merge
This commit is contained in:
22
git/snippets/create-commit.md
Normal file
22
git/snippets/create-commit.md
Normal file
@ -0,0 +1,22 @@
|
||||
---
|
||||
title: Create a commit
|
||||
type: snippet
|
||||
tags: [commit]
|
||||
cover: baloons-field
|
||||
dateModified: 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>`.
|
||||
|
||||
```shell
|
||||
git commit -m <message>
|
||||
```
|
||||
|
||||
```shell
|
||||
# Make some changes to files
|
||||
git add .
|
||||
git commit -m "Fix the network bug"
|
||||
# Creates a commit with the message "Fix the network bug"
|
||||
```
|
||||
Reference in New Issue
Block a user