일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- JavaScript
- 프로그래머스
- 코딩테스트
- 코딩테스트실력진단
- Apple Developer Academy
- 코드트리
- 프로젝트
- NextJs
- 프론트엔드
- 자바스크립트
- error
- SWIFT
- swiftUI
- react
- UIKit
- AppleDeveloperAcademy
- Front-end
- Xcode
- tshaped
- 회고
- react-query
- iOSDeveloper
- frontend
- velog
- 코드트리챌린지
- globalcommunity
- ios
- 알고리즘
- TypeScript
- git
Archives
- Today
- Total
Moon Work
[Git] git merge --no-ff Xcode 에러 해결하기 본문
Merge branch 'cssStyle'
# Please enter a commit message to explain why this merge is necessary,
# especially if it merges an updated upstream into a topic branch.
#
# Lines starting with '#' will be ignored, and an empty message aborts
# the commit.
Git merge
git에서 작업을 하던 브랜치에서 main 브랜치에 병합하게 될 경우 fast-forward 방식과 non-fast-forward 방식이 있다. 위 에러는 non-fast-forward 방식으로 병합을 하는데 사용하는 VSCode에서 나타난 에러이다. 아무런 키를 눌러도 동작하지 않아서 방법을 찾아보았다.
해결방법
- i 키를 누른다.
- merge를 위한 커밋 메세지를 입력한다.
- esc 버튼을 누른다.
- :wq를 입력한다.
- enter 키를 누른다.
위에 에러에서 Merge branch 'cssStyle' 이 부분이 커밋 메세지를 입력하는 부분이고 커밋 메세지가 따로 필요 없다면 4번부터 진행하면 아래와 같이 기본 커밋 메세지로 merger가 완료된다.
참고
Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a topic b
I am using Git. I did a pull from a remote repo and got an error message: Please enter a commit message to explain why this merge is necessary, especially if it merges an updated upstream into a
stackoverflow.com
'에러처리' 카테고리의 다른 글
[Swift] Exception NSException "keypath data not found in entity _" (0) | 2023.02.28 |
---|---|
[Swift] outlet connection error / 스토리보드 파일 연결 에러 (0) | 2023.02.27 |
[netlify] 호스팅 exit code 1 에러 해결하기 (0) | 2023.01.09 |
[CORS] Cors를 처리해도 Cors 에러가 나는 경우(with Credentials) (0) | 2022.12.28 |
에러처리: [eslint] Failed to load plugin 'jsx-a11y' declared in 'package.json (0) | 2022.12.03 |