반응형
Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
Tags
- electron-nuxt
- Vuetify
- kotlin
- vuejs
- v-select
- 동일 프로세스
- xlsx
- onsenui
- 동일 프로그램
- MySQL
- vuetifyjs
- nodejs
- Vue
- naver storage
- onsen-ui
- sequelize
- v-text-field height
- f035d
- JavaScript
- c#
- Android
- NUXT
- sort
- CSS
- bucket max-key
- error
- naver storage bucket error
- bucket cors
- Electron
- 프로세스 방지
Archives
- Today
- Total
앙큼한 개발기록
[git] fatal: 정방향이 불가능하므로, 중지합니다. 본문
회사에서 2대의 PC를 쓰다가
다른 PC에서 git pull를 하니 해당 에러가 발생한다.
fatal: 정방향이 불가능하므로, 중지합니다.
해결 방법은 간단하다.
git pull --rebase
원인은 리모트 저장소가 로컬보다 앞서있고
머지할게 있을때 충돌이 일어나서 안된다는 것
git config pull option을 설정해주면 된다.
해당 설정값은 다음과 같다.
git config pull.rebase false # merge (the default strategy)
git config pull.rebase true # rebase
git config pull.ff only # fast-forward only
여기서
git config --unset pull.ff
// 또는
git config --unset --global pull.ff
설정을 바꾸어주면 충돌이 일어나도 오토 머지를 하거나 알아서 재구성 해준다.
끝.
'개발' 카테고리의 다른 글
[c#] 프로그램 자동실행 (0) | 2023.05.23 |
---|---|
[git] error: failed to push some refs to 오류 (0) | 2023.02.09 |
서버의 로컬화에 대한 기록(server localization) (0) | 2022.06.08 |
[Macbook] COMMAND ControlCe 사용 (5000, 7000 port) (0) | 2022.06.05 |
<M1> docker compose 실행 (0) | 2022.06.05 |
Comments