git-commit: add Japanese translation (#10008)

* git-commit: add Japanese translation

* git-commit: translate placeholders into Japanese
pull/23/head
elderica 2023-04-11 01:50:49 +09:00 committed by GitHub
parent d669a72bc8
commit 12ebd86cad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,32 @@
# 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`