Files
tldr/pages.ja/common/git-commit.md
K.B.Dharun Krishna 8538a31451 pages/*: add standard translation and links (#11331)
* pages/*: add standard translation and links

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix1: false positives; standardize Bengali, Hindi, Nepali periods

* fix: periods in recently added Bengali pages

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* fix: false positives in modified files

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

* cleanup: update to native period in Bengali l10n

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>

---------

Signed-off-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
2023-11-06 14:02:31 +05:30

33 lines
1.2 KiB
Markdown

# git commit
> リポジトリにファイルをコミットします。
> 詳しくはこちら: <https://git-scm.com/docs/git-commit>
- メッセージと共に、ステージ済のファイルをリポジトリにコミットする:
`git commit -m "{{メッセージ}}"`
- ファイルから読みとったメッセージと共に、ステージ済のファイルをコミットする:
`git commit --file {{コミットメッセージが書かれたファイルへのパス}}`
- 変更されたファイルを全て自動的にステージし、メッセージと共にコミットする:
`git commit -a -m "{{メッセージ}}"`
- ステージ済のファイルをコミットし、`~/.gitconfig`に設定したGPG鍵で署名する:
`git commit -S -m "{{メッセージ}}"`
- 今のステージ済の変更を最後のコミットに付け足し、コミットハッシュを変更する:
`git commit --amend`
- 特定のファイル(ステージ済)だけをコミットする:
`git commit {{ファイルパス1}} {{ファイルパス2}}`
- ステージ済のファイルが無くても、コミットを作る:
`git commit -m "{{メッセージ}}" --allow-empty`