(팀에서 먼저 깃헙에 repository를 만들어주셔서 깃헙 html 주소를 받아왔다)
vscode 열기 -> repository clone -> 로컬에 repository 저장소 설정 -> 저장
깃에서 main 브랜치는 프로젝트에 적용할 파일들을 업로드하는 메인 브랜치이다.
(여기에 만들어진 폴더랑 파일들을 내 로컬에 클론해 두었다.)
내가 만든 파일들의 버전관리와 팀과 공유를 위해 내 브랜치를 만들었다.
vscode -> sorce control -> repository 에서 branch -> create branch -> branch 이름 입력-> 완료
내가 생성한 tree 브랜치를 remote 연결했더니,이미 remote origin에 연결되었다
git remote add origin (git html)
git push origin (브랜치명)
완료하면 깃헙에 내 브랜치가 생성된걸 볼수 있다.