Base Line/github관리
-
로컬에 포크한 깃허브 관리Base Line/github관리 2023. 8. 8. 15:30
##상황 로컬 컴퓨터에 포크한 깃헙 레포지터리와 같은 상태를 만들고 싶음!! 우선 작업하는 원본 레포지터리로 부터 포크를 했다고 가정해보자 포크한 레포지터리로 부터 로컬 컴퓨터에 클론을 진행한다. git clone https://github.com/ylab604/Algo_Master.git. cd Algo_Master 여기에 포크한 원본 레포지터리를 추가한다. git remote add upstream https://github.com/ylab604/Algo_Master.git. (여기서 upstream을 작명하는 것은 본인 마음이다 보통 upstream을 많이 사용한다.) 공통작업을 해야한다면 보통 브랜치를 생성해서 작업한다. 그치만 알고리즘 공부하는 레포지이므로 생략 ㅎㅎ 원본 레포지토리와 동기화 (..