๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

โœ”๏ธ Etc.

[Git] ์ €์žฅ์†Œ repository ์˜ฎ๊ธฐ๊ธฐ, ์ด๋™

git repository mirroring

  • git ์ €์žฅ์†Œ(repository)๋ฅผ ์ปค๋ฐ‹๋กœ๊ทธ ํฌํ•จ, ๊ทธ๋Œ€๋กœ ์˜ฎ๊ธฐ๋Š” ๋ฐฉ๋ฒ•

 


[Solution]

1.  ์›๋ณธ ์ €์žฅ์†Œ(A)๋ฅผ ๋ณต์‚ฌ(mirroring)ํ•œ๋‹ค.

$ git clone --mirror [์›๋ณธ ์ €์žฅ์†Œ ๊ฒฝ๋กœ] <๋˜๋Š” ์ด๋ฆ„>

 

2. ํด๋ก ํ•œ ๋””๋ ‰ํ† ๋ฆฌ ์•ˆ์œผ๋กœ ์ด๋™

$ cd [์›๋ณธ ์ €์žฅ์†Œ ์ด๋ฆ„].git

 

3. ์ƒˆ๋กœ ์ด๋™ํ•  ์›๊ฒฉ ์ €์žฅ์†Œ(B) ๊ฒฝ๋กœ ์ง€์ •

$ git remote set-url --push origin [์ด๋™ํ•  ์›๊ฒฉ ์ €์žฅ์†Œ]

 

4.  ์ƒˆ ์›๊ฒฉ ์ €์žฅ์†Œ๋กœ push

$ git push --mirror

์ด๋•Œ, ์ž…๋ ฅํ•˜๋Š” Password๋Š” github ๋น„๋ฒˆ์ด ์•„๋‹Œ ํ† ํฐ๊ฐ’์ž…๋‹ˆ๋‹ค.

(github ํ† ํฐ ์ƒ์„ฑ >> https://lxxyeon.tistory.com/72?category=901164)

728x90
๋ฐ˜์‘ํ˜•