codestates / codestates/memory.json

[Error] git pull upstream dev >> Conflict

Open
#63 0 comments 0 reactions 0 assignees View on GitHub
error
Dominant language
JavaScript
Stars
1
Forks
1
PR merge metrics
No merged PRs in 30d

Description

### 어떤 에러인가요?
* upstream에서 내 로컬로 pull을 하게 되면 충돌 및 에러가 발생한다.

### 에러 메시지
```
error: Your local changes to the following files would be overwritten by merge:
Automatic merge failed; fix conflicts and then commit the result.
```

### 에러 핸들링 방법
* 핸들링 방법 기록
```
// 내 로컬의 파일과 upstream에서 가져오는 파일이 달라서 나오는 메시지이다.
// vscode에서 git pull upstream dev 를 실행하게 되면, 로컬과 upstream을 비교해서 겹치는 부분을 볼 수 있다.
// 각각의 파일에서 current, incoming, both 중 하나를 선택하여 내 로컬에 적용해준다.
// 이후,
git add .
git commit
git push origin dev
// 를 진행하여 변경사항이 적용된 로컬의 파일을 나의 원격 repository로 보내주고,
// 이후, upstream 으로 PR을 보낸다.
```

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.