Git
remote repository와의 sync 맞추기
limdef
2021. 1. 5. 18:26
특정 다른 remote repository의 commit log 이력까지 가져오려면 다음과 같이 진행한다.
1. 현재 추가되어 있는 remote repository 확인
git remote -v
2. git remote add {name} {git-repo} // name은 별칭 , git-repo는 repository의 주소 (.git)
git remote add test https://github.com/des/test.git
3. remote repo에서 pull
git pull {git remote 에서 설정한 별칭} {가져올 브랜치}
ex) git pull test remobranch
4. 나의 remote repository에 push하여 sync 맞추기
git push
//git push origin(나의 remote 별칭) 브랜치이름