git commit
ํ์ผ์ ์ ์ฅ์์ ์ปค๋ฐํฉ๋๋ค.
๋ ๋ง์ ์ ๋ณด: https://git-scm.com/docs/git-commit.
- ์คํ
์ด์ง๋ ํ์ผ์ ๋ฉ์์ง์ ํจ๊ป ์ ์ฅ์์ ์ปค๋ฐ:
git commit --message "{{๋ฉ์์ง}}"
- ํ์ผ์์ ์ฝ์ ๋ฉ์์ง๋ก ์คํ
์ด์ง๋ ํ์ผ์ ์ ์ฅ์์ ์ปค๋ฐ:
git commit --file {{๊ฒฝ๋ก/๋์/์ปค๋ฐ_๋ฉ์์ง_ํ์ผ}}
- ์์ ๋ฐ ์ญ์ ๋ ๋ชจ๋ ํ์ผ์ ์๋์ผ๋ก ์คํ
์ด์งํ๊ณ ๋ฉ์์ง์ ํจ๊ป ์ปค๋ฐ:
git commit --all --message "{{๋ฉ์์ง}}"
- ์คํ
์ด์ง๋ ํ์ผ์ ์ปค๋ฐํ๊ณ ์ง์ ๋ GPG ํค๋ก ์๋ช
ํฉ๋๋ค (์ธ์๊ฐ ์ง์ ๋์ง ์์ ๊ฒฝ์ฐ ๊ตฌ์ฑ ํ์ผ์ ์ ์๋ ํค ์ฌ์ฉ):
git commit --gpg-sign {{ํค_์์ด๋}} --message "{{๋ฉ์์ง}}"
- ํ์ฌ ์คํ
์ด์ง๋ ๋ณ๊ฒฝ ์ฌํญ์ ์ถ๊ฐํ์ฌ ๋ง์ง๋ง ์ปค๋ฐ์ ์
๋ฐ์ดํธํ๊ณ ์ปค๋ฐ์ ํด์๋ฅผ ๋ณ๊ฒฝํฉ๋๋ค:
git commit --amend
- ํน์ ํ์ผ(์ด๋ฏธ ์คํ
์ด์ง๋)๋ง ์ปค๋ฐ:
git commit {{๊ฒฝ๋ก/๋์/ํ์ผ1 ๊ฒฝ๋ก/๋์/ํ์ผ2 ...}}
- ์คํ
์ด์ง๋ ํ์ผ์ด ์๋๋ผ๋ ์ปค๋ฐ ์์ฑ:
git commit --message "{{๋ฉ์์ง}}" --allow-empty