T-emergency / hands-up-backend

6 stars 3 forks source link

๐Ÿ› [Bug] git commit ์˜ค๋ฅ˜ #15

Closed son950610 closed 1 year ago

son950610 commented 1 year ago

Issue description ( ์ด์Šˆ ์„ค๋ช… )

git commit์„ ํ•˜๋Š”๋ฐ "fatal: could not read '.gitmessage.txt': No such file or directory" ์ด๋Ÿฌํ•œ ์˜ค๋ฅ˜๊ฐ€ ๋œธ.

Steps to reproduce the issue ( ๋ฌธ์ œ ์žฌํ˜„ํ•˜๋Š” ๋‹จ๊ณ„ )

  1. ๊ธฐ๋Šฅ๊ตฌํ˜„์„ ํ•˜๊ณ  git commit์„ ์ž…๋ ฅํ•œ ๊ฒฐ๊ณผ ์˜ค๋ฅ˜๊ฐ€ ๋œธ. (์˜ค๋ฅ˜๋ฐœ์ƒ)
  2. .gitmessage.txt ๋ฅผ ์ฝ์ง€ ๋ชปํ•จ. (์˜ค๋ฅ˜ํ•ด์„)
  3. ๊ตฌ๊ธ€๋ง์„ ํ•จ. (์˜ค๋ฅ˜ ๊ฒ€์ƒ‰)
  4. ์˜ค๋ฅ˜ํ•ด๊ฒฐํ•˜์ง€ ๋ชปํ•จ.
son950610 commented 1 year ago

.gitmessage.txt ํŒŒ์ผ์ถ”๊ฐ€ํ•˜์—ฌ ์˜ค๋ฅ˜ํ•ด๊ฒฐ์™„๋ฃŒ

KimGyeongMin-KR commented 1 year ago

git config --global commit.template .gitmessage.txt

https://stackoverflow.com/questions/43144262/how-can-i-undo-commit-template