반응형 git2 [Git] branch 생성, 변경 신규 branch 로컬에 생성하기 git checkout -b {신규 브랜치명} ** 예시 git checkout -b hyeonyoung/footer-update branch 목록 확인하기 git branch branch 원격으로 push 해주기 git push {remote} {branch} ** 예시 git push origin hyeonyoung/footer-update Git hub와 연결되어 있을 때 : 해당 레포지토리에서 확인 가능!! branch 변경하기 git checkout {branch} ** 예시 git checkout hyeonyoung/update 2023. 5. 12. [Git] error: failed to push some refs to push error: failed to push some refs to 원인 : local과 Git hub 저장소가 일치하지 않을 때 나타남 (브렌치명이 다를 때도 동일한 에러 발생!) 해결 git pull origin main 후에 다시 git push origin main 해주기 더보기 git pull origin main // 원격 저장소의 내용을 가져와서 현재 브랜치와 병합 git add . // directory에 있는 전체 파일을 Staging area에 옮기기 git commit -m "commit message" // 커밋 메시지 기록하여 남기기 git push origin main // 원격 저장소로 push git push origin +main : 강제 push (강제로 덮어쓰기 되므.. 2023. 3. 13. 이전 1 다음 반응형