From 12ebd86cad39a8c5e939525873a31432853b3bc1 Mon Sep 17 00:00:00 2001 From: elderica <1130138+elderica@users.noreply.github.com> Date: Tue, 11 Apr 2023 01:50:49 +0900 Subject: [PATCH] git-commit: add Japanese translation (#10008) * git-commit: add Japanese translation * git-commit: translate placeholders into Japanese --- pages.ja/common/git-commit.md | 32 ++++++++++++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 pages.ja/common/git-commit.md diff --git a/pages.ja/common/git-commit.md b/pages.ja/common/git-commit.md new file mode 100644 index 000000000..5c73a763b --- /dev/null +++ b/pages.ja/common/git-commit.md @@ -0,0 +1,32 @@ +# 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`