push
-
[Git hub 사용법] Push ErrorGit/Github 2022. 7. 19. 15:44
$ git push origin master To https://github.com/xxxxx/TIL.git ! [rejected] master -> master (fetch first) # 거절됨... # 원격 저장소로 push하는 것을 실패했음.. error: failed to push some refs to 'https://github.com/xxxxx/TIL.git' # update가 reject되었는데 왜냐면... remote에 local 없는 어떤 변경 사항이 있음... hint: Updates were rejected because the remote contains work that you do # 이러한 상황은 커밋이 다른 경우에 발생하는데.. remote 저장소와 local 저장소를 일..
-
[GitHub 사용법] pull & cloneGit/Github 2022. 7. 18. 15:06
목차 Push - 로컬 저장소에서 관리한 버전 이력을 원격 저장소(github)으로 업로드 하는 명령어 $ git push origin master - 참고 $ git push -u origin master # 여기서 -u는 최초 1회만 붙이면 됩니다.(최소 1회 push 할 때만 붙이자.) Pull - 원격 저장소의 변경 사항을 받아옴(업데이트) - commit 내역을 기반으로 변경 사항을 새로 갱신하는 행위 $ git pull origin master # git아 pull(업데이트)해줘 origin 이라는 원격 저장소로부터 master 브랜치를 $ git pull origin master remote: Enumerating objects: 5, done. remote: Counting objects:..