반응형 Branch2 git 폴더 remote - 리포지토리 설정하여 코드 올리기 목차 일반 폴더에 프로젝트의 리포지토리를 연동하려고 한다. 예를들어 example 폴더를 A branch 와 연동하고 싶은것. 방법 git init git remote add origin [git 주소] git add .; git commit -m [message] git push --set-upstream origin main 에러 및 해결방안 아무것도 없는 리포지토리를 remote 하려면 다음과 같이 하면 된다. git remote add origin [url or ssh] error: remote origin already exists. 이럴 땐 remote origin을 삭제 git remote remove origin git push -u origin master error: src refspe.. 2023. 8. 30. git branch tracking 하기 There is no tracking information for the current branch. Please specify which branch you want to merge with. See git-pull(1) for details. git에 있는 브랜치를 로컬에서 생성했더라도 로컬은 git 서버의 어떤 브랜치를 tracking 해야할지 모르기 때문에 설정을 해주어야 한다 git branch --set-upstream-to=origin/[git 서버의 브랜치명] [local 브랜치명] 2023. 5. 16. 이전 1 다음 반응형