rename
restore
$ git restore [filename]
undoing ๋ณ๊ฒฝ์ฌํญ ์ทจ์
์ต์ ์ ์ปค๋ฐ์ผ๋ก ๋์๊ฐ.
reset
$ git reset HEAD [filename]
unstaging
stagingarea ์์ working ๋ก ๊ฐ์ ธ์์ง๋ค.
git commit --amend
๋ง์ง๋ง commit ์ ์์ ํ๋ ๋ช ๋ น์ด์ด๋ค.
๊ฐ์ฌ๋์ commit์ ์์ ํ๋ ๊ฑด ๊ถ์ฅํ์ง ์์ผ๋ commit message ์ ์คํ๊ฐ ๋ฌ์ ๊ฒฝ์ฐ ์ฌ์ฉํ๋ผ๊ณ ํ์ จ๋ค.
๋ฐ์ํ
'๐ TIL' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[220406]CSS ์์ฑ (0) | 2022.04.06 |
---|---|
[220403] ๊ธฐ๋ณธ ๊ฐ์ / ํน์๋ฌธ์ (0) | 2022.04.05 |
[220330] git-flow (1) | 2022.04.01 |
[220329] Commit Convention (0) | 2022.03.29 |
[220328] CLI /vim / markdown (0) | 2022.03.28 |