Gallery
Search
git init
git add .
git status
git commit โ template ์ ์ฉํด๋ , ์ํ! or git commit -m โchore : First initโ ๊ฐ์ ์
๋ ฅ
git remote add origin <Github url>
git push --set-upstream origin master
git switch -c <function name>
git switch <function name>
[Git] ์ค๋ช
์์ ๊ทธ๋ฅ ์ฐ๋ค๋ณด๋ ์ธ์ด CLI ๊ธฐ๋ณธ ๋ช
๋ น์ด
Github์์ PR๋ฐฉ์ ์ปค๋ฎค๋์ผ์ด์
์ ํ์์ ์ด๋ผ ์๊ฐํ๋ค. ํ์ง๋ง ๋๋ ์ด ๋ฐฉ์์ ๋ํ ์ดํด๋๊ฐ ๋์ง ์์์ ์ถฉ๋ถํ ๊ธฐ๋ฅ์ ์ฌ์ฉํ์ง ๋ชปํด์์๋ค.
์ด๋ฒ์ ํ์๋ค๊ณผ์ ํ
์คํธ๋ฅผ ํตํด์ ํ์ฅ์ด ๊ณต์ ํ ์๊ฒฉ ๋ฆฌํฌ๋ฅผ Fork ์ดํ๋ถํฐ ๊ณต์๋ฌธ์๋ฅผ ์ฐธ๊ณ ํ์ฌ ์ฝ์ ํ
์คํธ๋ฅผ ๊ฑฐ์ณ์ ๊ธฐ๋ฅ๋ค์ ์ถฉ๋ถํ ํ
์คํธํด๋ณผ ์ ์์๋ค.
์์ผ๋ก ํ ํ์
์ ํ ๋ ์ ๊ทน์ ์ผ๋ก ํ์ฉํด๋ด์ผ๊ฒ ๋ค.
์ฐ์ ์ ๋ฐ๊ณผ์ ์ ๋ด๊ฐ ์ดํดํ๊ธฐ ์ฝ๊ฒ ์ ๋ฆฌํ๋ค.
โข
Fork๋ก ํ์ฅ์ ์๊ฒฉ ๋ฆฌํฌ๋ฅผ ํด๋ก
โข
New Branch ๊ธฐ๋ฅ ๋จ์ ์ ๋ํ Branch๋ฅผ ์์ฑ
[Git]02 ํ์
Pull-Request์ Conflicts๋ฐ์, Change Request๋ก ์ปค๋ฎค๋์ผ์ด์
ํ๊ธฐ
ํด๋น ์์์ฒ๋ผ ์ฌ์ฉํ๋ ค๊ณ ๋
ธ๋ ฅํ๊ณ ์๋ค. ํ์ง๋ง ํญ์ ํด๋น ์์์ ๋ณต์ฌ, ๋ถ์ฌ ๋ฃ๊ธฐ ํ๋ ๊ฒ์ ๋นํจ์จ์ ์ด์๋ค. ์ด๋ฏธ ์๋ํ๋ template ๊ฐ์ ๊ฒ ์์ง ์์๊น? ์๊ฐํ๋ค.
git ๊ณต์๋ฌธ์๋ฅผ ํตํด์ template์ ์ค์ ํ๊ณ ์์ฑํ๋ ๊ฒ์ ์ฐธ์กฐํ๋ค.
Git - Git ์ค์ ํ๊ธฐ
1. Git Config ์ดํด
Git์ย ๋ด์ฅ๋ย ๊ธฐ๋ณธย ๊ท์น์ย ๋ฐ๋ฅด์ง๋ง,ย ์ค์ ๋ย ๊ฒ์ดย ์์ผ๋ฉดย ๊ทธ์ย ๋ฐ๋ฅธ๋ค.
๊ฐ ์ค์ ํ์ผ์ ์ค๋ณต๋ ์ค์ ์ด ์์ผ๋ฉด ์ค๋ช
ํย โ์์๋๋กโย ๋ฎ์ด์ด๋ค. ์๋ฅผ ๋ค์ด .git/config ์ /etc/gitconfig ์ ๊ฐ์ ์ค์ ์ด ๋ค์ด ์๋ค๋ฉดย .git/configย ์ ์๋ ์ค์ ์ ์ฌ์ฉํ๋ค.
[Git]01 Commit Template ์ค์ ํด๋ณด๊ธฐ ๋ฐ IntelliJ์์ Git commit template Plugin ์ฌ์ฉํ๊ธฐ

[Git]00 Commit ๋ฉ์์ง ์์ฑ๋ฒ ์ปจ๋ฒค์


