생각기록

git 오류! [rejected] develop -> develop (fetch first)error: failed to push some refs to 본문

SeSAC 풀스택/git관련

git 오류! [rejected] develop -> develop (fetch first)error: failed to push some refs to

끼록관 2023. 3. 21. 16:34

To https://github.com/AHRUMPARK/mini_kushk.git
 ! [rejected]        develop -> develop (fetch first)
error: failed to push some refs to 'https://github.com/AHRUMPARK/mini_kushk.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

To https://github.com/AHRUMPARK/mini_kushk.git
 ! [rejected]        develop -> develop (fetch first)
error: failed to push some refs to 'https://github.com/AHRUMPARK/mini_kushk.git'
hint: Updates were rejected because the remote contains work that you do
hint: not have locally. This is usually caused by another repository pushing
hint: to the same ref. You may want to first integrate the remote changes
hint: (e.g., 'git pull ...') before pushing again.
hint: See the 'Note about fast-forwards' in 'git push --help' for details.

 

 

 

참고 : https://wikidocs.net/17171

 

07. git merge 와 conflict 해결

## 1. git merge - 브랜치를 병합하는 명령어 - 현재상태의 브랜치에서 다른 `브랜치명` 의 브랜치를 가져와 합친다. ```bash $ git merge 브랜치명 …

wikidocs.net

 

 

git status

이 파일들을 확인

 

  • HEAD 는 현재 브랜치를 가리키며 master는 병합한 브랜치다.

 

충돌들을 해결 후