git status   // git ์ƒํƒœ
git pull    // git ์ตœ์‹ ํ™”ํ•˜๊ธฐ
git checkout -b newbranch   // ์ƒˆ ๋ธŒ๋žœ์น˜ ๋งŒ๋“ค๊ธฐ [newbranch: ๋ธŒ๋žœ์น˜๋ช…]
// ์ž๋™์œผ๋กœ newbranch ๋กœ ์ด๋™ํ•จ
// newbranch์—์„œ ์ž‘์—… ...
git status
git add .
git commit -m "feat : msg"
git push
git checkout main
git status
git pull // ํ•ญ์ƒ ์ตœ์‹ ํ™” ํ•ด์ค„ ๊ฒƒ...!!!

https://eunhee-programming.tistory.com/256

 

(Git) ๊นƒ ํ˜‘์—…์‹œ branch์‚ฌ์šฉ๋ฒ• ์ด์ •๋ฆฌ/์ดˆ๋ณด์ž๋ฅผ ์œ„ํ•œ branch ์‚ฌ์šฉ ์ด์œ  ์„ค๋ช…

1. branch ์‚ฌ์šฉ ์ด์œ  2. ๊ธฐ๋ณธ์ ์ธ branch ๋ช…๋ น์–ด ์ด์ •๋ฆฌ 1. ๋™์‹œ ์ž‘์—…์„ ์œ„ํ•ด > ํŒ€์› A,B,C๊ฐ€ ์žˆ์„๊ฒฝ์šฐ, ์„ธ๋ช…์ด ๊ฐ๊ฐ branch๋ฅผ ๋งŒ๋“ค์€ ํ›„, ์ž์‹ ์˜ branch์— ๊ฐ๊ฐ ๋งก์€ ๋ถ€๋ถ„์˜ ๊ฐœ๋ฐœ์„ ์ง„ํ–‰. ๊ทธ ํ›„, merge๋ฅผ ํ†ตํ•ด

eunhee-programming.tistory.com

 

https://myung-ho.tistory.com/91

 

[Git] git rebase ๋ž€??

์‚ฌ๋‚ด์—์„œ ๊ฐ„๋‹จํ•˜๊ฒŒ git rebase์— ๋Œ€ํ•ด ์„ค๋ช…์„ ํ•˜๊ฒŒ ๋˜์—ˆ์Šต๋‹ˆ๋‹ค. Rebase๋Š” ์ด๋ฆ„ ๊ทธ๋Œ€๋กœ ๋ธŒ๋žœ์น˜์˜ base๋ฅผ ๋‹ค์‹œ ์„ค์ •ํ•œ๋‹ค๋Š” ์˜๋ฏธ์ž…๋‹ˆ๋‹ค. ์œ„ ๊ทธ๋ฆผ์„ ๋ณด๋ฉด feature๋ธŒ๋žœ์น˜์—์„œ a3 ์ปค๋ฐ‹์„ ๋ฒ ์ด์Šค๋กœ ์ž‘์—…์„ ์ง„ํ–‰

myung-ho.tistory.com

 

+ Recent posts