250x250
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31
Archives
Today
Total
관리 메뉴

devlog_owen

231205 TIL) 깃허브 기존 소스코드 복사해서 새로운 레파지토리 생성하기 본문

TIL

231205 TIL) 깃허브 기존 소스코드 복사해서 새로운 레파지토리 생성하기

developer_owen 2023. 12. 6. 03:13
728x90

기존 소스코드 복사해서 새로운 레파지토리 생성하기

 

1. 먼저 새로운 레파지토리를 생성한다.

2. 새로운 레파지토리를 깃클론한다.

git clone https://github.com/username/new-repository.git

 

3.기존 레파지토리에서 소스코드 가져온다.

git remote add original https://github.com/username/original-repository.git
git pull original main

4. 변경사항을 새로운 레파지토리에 푸시

git push origin main

 

 

 

728x90