Git Repositories ํตํฉ (์๋ ์ ์งํ๊ธฐ)
์ง์ง git์ commit pull request๋ง ํ๋ค๊ฐ ์ฒ์์ผ๋ก bash๋ฅผ ์ด์ฉํด์ ์ ์ฅ์ ํตํฉ์ ํด๋ดค๋ค. ์ง์ง ์ฒ์์ ๊ฐ๊ณ ์์ ํ๋ค. ์ด๊ฑฐ ๋๋ฌด ๊ณ ์ํด์ ๊ธฐ๋ก์ฉ์ผ๋ก ๋จ๊ฒจ๋๋ค. 1.์ผ๋จ ์๋ก์ด new repo๋ฅผ ๋ง๋ ๋ค. 2.๋ฐํํ๋ฉด์ repo๋ ๋๊ฐ์ ์ด๋ฆ์ ๊ฐ์ง ํ์ผ์ ๋ง๋ค๊ณ -1 #์ค๋ช
#.git์ด ์๊ธด๋ค $git init -2 #๋ก์ปฌ์ด๋ git์ด๋ ์ฐ๊ฒฐ๋จ $git clone ์๋ก ์ ์ฅ์.git -3 #remoteํ๊ธฐ $git remote add ์ด๋ฆ oldํ์ผ.git ... ๋ช๊ฐ ์ถ๊ฐํ๊ณ $git remote -v -4 #subtree์์ฑ git subtree add --prefix ํด๋๋ช
์ด๋ฆ(3๋ฒ์ ์ด๋ฆ) ๋ธ๋์น๋ช
-5 $git push ! [rejected] master -> master (..
2022.10.03