오류 메세지:

 

rejected Updates were rejected because the remote contains work that you do not have locally. This is usually caused by another repository pushing to the same ref. You may want to first integrate the remote changes before pushing again.

 

오류원인: 

 

GitHub 혹은 GitLab 에서 저장소를 만들 때 README.md 를 생성하는 commit 을 시도했다. 하지만, local repository 에서는 README.md 를 생성하는 commit이 발생했다는 사실을 인식하지 못해 오류가 난 것이다.

 

해결방법 : 

 

git push -f origin master

-f 를 이용해 강제 push를 진행한다.

 


참고사이트 : 

 

https://stackoverflow.com/questions/20939648/issue-pushing-new-code-in-github

반응형

오류원인: 

 

null 의 값을 가질 수 없는 object 에 null을 할당했기 때문에 생긴다.

 

해결방법 : 

 

오류가 난 객체에 null 값이 할당되지 않도록 코드를 수정한다.


1) 기존코드 : 선언과 null 할당을 한다. 
2) 해결코드 : new 연산자를 통해 변수만 생성 후 null 을 할당하지 않는다. 


참고사이트 : 

https://docs.unity3d.com/kr/530/Manual/NullReferenceException.html

반응형

오류원인

Gitlab 과 연동시 잘못된 아이디,비밀번호로 접근권한 오류가 난 것이다.

 

해결방법

제어판 - 사용자 계정 - 자격 증명 관리자 - Windows 자격 증명 관리자 - 일반 자격 증명 - gitlab 사용자이름/암호 편집

 

 

 

 

반응형

+ Recent posts