Git์ ํ ๋๋ง๋ค ํญ์ ์๋กญ๊ธด ํ๋ฐ, ์ด๋ฒ์ ์ฒ์์ผ๋ก Migration์ ํด๋ดค์ต๋๋ค.
๊ฐ์ธ GitHub → GitLab์ผ๋ก Migration ํ๊ฒ ๋๋๋ฐ,
์์ ์งํ ํ๋ ์์๋ฅผ ์ค๋ช ํ๊ณ ์ ํฉ๋๋ค.
์์ ์์
Repositroy ์ฃผ์๋ฅผ ์๋๋ก ๊ฐ์ ํ๊ฒ ์ต๋๋ค.
https://github.com/example/oldRepository.git
1. ์๋ก์ด Repository ๋๋ Giblab Project๋ฅผ ์์ฑํฉ๋๋ค.
2. git bash์ฐฝ์ ํค๊ณ , bare ์ต์ ์ผ๋ก clone์ ์์ฑํฉ๋๋ค.
$ git clone --bare https://github.com/example/oldRepository.git
3. 2๋ฒ์์ bare์ต์ ์ผ๋ก clone์์ฑํ ํด๋๋ก ์ด๋ํฉ๋๋ค.
$ cd oldRepository.git
4. ์๋ก์ด Repository์ mirror ์ต์ ์ ์ค์ push ํ์๋ฉด ๋ฉ๋๋ค.
$ git push --mirror https://github.com/example/newRepository.git
์ด๋ ๊ฒ ํ๋ฉด, ๊ธฐ์กด์ commit ๋ด์ญ๊น์ง ์ ๋ถ migration์ด ๋ฉ๋๋ค.
merge๋ด์ญ๋ ๋ ๊ฒ ๊ฐ์๋ฐ, ์ ๋ github → gitlab์ผ๋ก ํ๊ฑฐ๋ผ ์๋ ๊ฑฐ์ผ ์๋ ์์ ๊ฑฐ ๊ฐ์ต๋๋ค.
'Git' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
Git] Revert & Reset (0) | 2023.07.11 |
---|---|
Git] SSH(Secure Shell) Key (0) | 2023.07.09 |