Notice
Recent Posts
Recent Comments
Link
«   2024/05   »
1 2 3 4
5 6 7 8 9 10 11
12 13 14 15 16 17 18
19 20 21 22 23 24 25
26 27 28 29 30 31
Archives
Today
Total
관리 메뉴

I am who I am

[Git] Updates were rejected because the remote contains ... 에러 본문

CS/Git

[Git] Updates were rejected because the remote contains ... 에러

리르. 2017. 6. 13. 02:14

Github 에서 새로 repo 를 만들고, 로컬 서버와 연동을 위해 push를 했을 때 위와 같은 에러가 뜨는 경우가 있다.

 

보통 Github repo를 README 나 LICENSE 파일을 갖도록 init 하여 생기는 문제다.

 

이 경우,

로컬 서버에서

 

git remote add origin #GITHUB_URL

 

git pull origin mater

 

git push origin master

 

순서로 실행하면 된다.

 

'CS > Git' 카테고리의 다른 글

[GIT] commit message 수정  (0) 2017.06.19
[GIT]  (0) 2017.06.12
Comments