728x90
1. git branch 확인
*master
-> git branch main
-> git checkout main
트래킹 설정
2. git branch --set-upstream-to=origin/main main
3. git branch -vv로 확인
로컬 브랜치 main은 origin/main 을 트래킹하고 있다.
728x90
'git' 카테고리의 다른 글
git config pull.rebase false (0) | 2024.07.05 |
---|---|
git stash 방법 (0) | 2024.06.10 |
다른 컴퓨터 사용시 local branch가 remote branch를 tracking하지 못할 경우 (0) | 2024.06.02 |
git reject 문제 (0) | 2024.01.29 |
Updates were rejected because the tip of your current branch is behind (0) | 2024.01.20 |