Engineering Note

git local과 remote 브랜치 default 연결 설정하기 본문

Git

git local과 remote 브랜치 default 연결 설정하기

Software Engineer Kim 2021. 9. 30. 15:39

git push나 pull 할때 remote repository의 branch를 매번 적어줘야 하는 불편함을 해결하기 위해 default로 remote와 local branch 연결하는 방법

git branch --set-upstream-to=origin/<remote branch> <local branch>

remote repository origin의 특정 branch와 local branch 연결해서 push pull때 마다 branch 설정 안해도 되게 연결하기

'Git' 카테고리의 다른 글

git pull 에러  (0) 2021.10.22
git log --oneline  (0) 2021.10.19
Git의 기본 개념  (0) 2021.06.27
Git 저장소 생성  (0) 2021.06.27
VScode에서 Git bash 설정하기  (0) 2021.06.23
Comments