본문 바로가기
반응형

git4

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.
git 저장소 name, email 설정 git 정보 확인 cat ~/.gitconfig global 설정 git config --global user.name "Your Name" git config --global user.email you@example.com 저장소별 설정(해당 저장소에 들어가서 --global만 빼면됨) git config user.name "Your Name" git config user.email you@example.com 삭제 옵션은 --unset 2022. 11. 29.
AWS codecommit 리포지토리 연결 및 에러 로컬에서 codecommit을 이용하는데 the requested url returned error 403 aws codecommit 다음과 같은 에러가 떠버렷습니다. 근데 이상한게 첫번째는 잘 됬었던거 같은데 중간에 설정값을 바꾼것같네요. Troubleshooting을 하자면 Codecommit에는 3가지 접근방법이 있다. https - credential helper 사용하는방식 ssh - ssh(퍼블릭,프라이빗) key 이용하는 방식 https(GRC) - 로컬로 연결하는 방식 저는 로컬에서 git-remote-codecommit 을 사용하므로 https(GRC)를 사용해야하는데 https입력하라고 해서 맨위에 것을 사용한게 원인이었습니다. 헌데 push를 했는데 git: 'remote-codeco.. 2021. 8. 24.
반응형