git branch

Jan 02, 2024
git branch
 
๐Ÿ’ก
์ฝ”๋“œ๋ฅผ ํšจ์œจ์ ์œผ๋กœ ๊ด€๋ฆฌํ•  ๋•Œ ์‚ฌ์šฉ
 
notion image
git status
 
์šฐ์„  ๋ธŒ๋žœ์น˜๋ฅผ ๋งŒ๋“ค๊ธฐ ์ „ ํ˜„์žฌ์˜ ์ƒํƒœ๋ฅผ ํ™•์ธํ•œ๋‹ค. tree clean ์ƒํƒœ๊ฐ€ ์•„๋‹ˆ๋ผ๋ฉด commit ํ›„ ์‹คํ–‰ํ•˜์ž.
 
notion image
 
git branch test
 
test๋ช…์œผ๋กœ ์ƒˆ๋กœ์šด ๊ฐ€์ง€๋ฅผ ์ƒ์„ฑํ–ˆ๋‹ค.
 
notion image
git branch
ํ˜„์žฌ master ์—์„œ test ๋กœ ์˜ฎ๊ฒจ๋ณด์ž
 
notion image
 
git checkout test
 
test๋กœ ์˜ฎ๊ฒผ๋‹ค.
 
 
Share article

{CODE-RYU};