목록View All (350)
DATA101
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/mv90x/btrrd7L3mRZ/CmKRrROGIrDHvX3NIVmmYK/img.png)
기본 가정 - A라는 branch와 B라는 branch가 있다고 가정 - 최초 branch 위치는 A라고 가정 - 목표: A branch와 B branch를 병합하여 로컬, 원격 저장소에 모든 파일을 최신 파일로 업데이트 Step 1. 로컬 저장소 수정된 파일 업로드 - 아래 그림 1 내 1️⃣과 같이, 로컬 A branch에서 작업한 파일이 원격 저장소와 차이가 있는지 확인 git status - 수정된 파일이 있을 경우 원격 저장소에 push git commit -am "커밋메시지" - 파일 push git push origin branchA Step 2. 로컬 branch 간 merge - remote update 진행 git remote update - branchB로 이동 git checkout..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/cWd5Hk/btrqHDx7DUS/StIFvm4T9vhofCp6hm4o1K/img.png)
❗ 에러 상황- branch 이동 시도 중 원격 저장소 내 branch 정보를 제대로 읽어오지 못하는 상황 발생 - push, pull, merge 등 원격 저장소와 통신할 때 언제든 발생할 수 있는 에러 중 하나📑 에러 메시지fatal: 'development' does not appear to be a git repository fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.✨ 해결 방법2가지 해결 방법이 있습니다.첫 번째, 원격 저장소 정보 업데이트 방법두 번째, 원격 저장소 연결 제거 후 재연결각각 알아보겠습니다.💡 솔루션 ..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/k41GJ/btrqsHaPVGI/Hk6yO7G6V0QAP2K86wIFsK/img.png)
❗ 에러 상황 checkout (branch 이동) 또는 pull 시 발생 📑 에러 메시지 error: Your local changes to the following files would be overwritten by checkout: ... Please commit your changes or stash them before you switch branches. Aborting ✨ 해결 방법 Step 1) 변동사항 스택 내 저장 stash: 현재 Staging 영역 내 파일의 변동사항을 스택에 넣어두기 git stash Step 2) checkout 또는 pull 시행 checkout 희망 시 git checkout [변경할 branch 이름] pull 희망 시 git pull origin [bra..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/eevtPV/btrp0JlVwrj/4QEdGhf0jLq7K9dbqm6KT1/img.png)
Step 1. 기존 Repository 연결 해제 git remote remove origin Step 2. 새로운 Repository 연결 git remote add origin [새로운 Repository URL] 포스팅 내용에 오류가 있다면 아래에 댓글 남겨주세요. 고맙습니다 :)
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bKmmEN/btrpP2MGMGB/2ym31xzQIuxjomH1SfHkFk/img.png)
에러 상황 React 기반 화면 UI 구현 중 아래 에러 메시지 확인 에러 메시지 JSX expressions must have one parent element. 에러 원인 - JSX 문법에서 Component가 여러 개 있다면 반드시 parent element로 감싸야 하는데 그렇지 않아서 발생한 이슈 - Component 내부는 하나의 DOM Tree 구조로 이루어져야 한다는 규칙을 따라야 함 해결책 간단하게 div 태그 또는 fragment 태그 또는 중괄호{}로 여러 Component를 감싸는 parent element를 사용하면 쉽게 해결 가능 해결책 예시1: div 태그 ... 해결책 예시2: fragment 태그 ... 해결책 예시3: 태그명 생략가능 ... 포스팅 내용에 오류가 있다면 아..
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/Prd6T/btrpJQFN2TV/llzLokrBm36X6MrLVywDw1/img.png)
에러 상황 React 서버 오픈 중에 아래와 같은 에러 메시지 확인 에러 메시지 'react-scripts'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는배치 파일이 아닙니다. 해결책 npm update 후 서버 재시작 npm update npm update 후에도 서버 실행이 안 된다면 react-scripts 설치 후 서버 재시작 npm install -g react-scripts npm start 포스팅 내용에 오류가 있다면 아래에 댓글 남겨주세요. 고맙습니다 :)
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/v5MhZ/btrpxxfWGWj/R7484P968f0Gkf88kdb6qK/img.png)
에러 상황 Repository에서 새로운 Branch가 업데이트되어 checkout 시도 중 아래와 같은 에러 발생 에러 메시지 error: pathspec 'development' did not match any file(s) known to git 문제 원인 Branch 업데이트가 안 되어 에러 발생 해결책 git remote update git checkout [branch 이름] 포스팅 내용에 오류가 있다면 아래에 댓글 남겨주세요. 고맙습니다 :)
![](http://i1.daumcdn.net/thumb/C150x150.fwebp.q85/?fname=https://blog.kakaocdn.net/dn/bi3BvK/btrpgyGw3R7/4WAk9bm2G6BKG9dI8Khk8K/img.png)
MySQL Shell 루트 권한 접근 터미널에 아래 명령어 입력 mysql -u root -p 루트 계정 비밀번호 입력 기존 비밀번호 입력 MySQL Shell에 루트권한으로 접근하였다면, 아래와 같이 사용자 이름과 변경할 비밀번호 입력 ALTER USER '사용자 이름'@'localhost' IDENTIFIED BY '새로운 비밀번호'; FLUSH PRIVILEGES; OK문이 나왔다면 비밀번호 변경 완료 포스팅 내용에 오류가 있다면 아래에 댓글 남겨주세요. 고맙습니다 :)