내 remote repository 다루기
1. git, my new remote repository 연동
git remote add <remote_repo_name(보통 origin)> <remote_repo address>
git remote remove <remote_repo_name(보통 origin)>
my_github -> git
git clone <remote_repository> [<directory_name>]
git -> my_github
git push <remote_repo_name> <branch_name>
다른 사람의 remote repository 다루기
- 상대방 remote repository는 직접 수정(push) 못함
- 따라서 다음과 같은 방법으로 작업을 진행함
1. 상대 remote repository를 folk
2. 복사한 repository를 clone 해서 git으로 옮기기
3. 작업 수행
4. 작업을 복사한 repository에 push
5. 복사한 repository에서 상대방 repository로 pull request 요청
git branch이름 변경
- master branch의 이름을 github format에 맞게 'main'으로 변경
git branch -M main