본문 바로가기

에러/git5

error: Your local changes to the following files would be overwritten by merge 에러 git pull 시 충돌 에러 error: Your local changes to the following files would be overwritten by merge: Please, commit your changes or stash them before you can merge. Aborting -> git stash 명령으로 스킵 2021. 1. 8.
git pull 에러 git pull origin master 실행 시 fatal: couldn't find remote ref master 에러가 발생 해결: master가 아니라 main으로 생성되어 발생한 에러로 git pull origin main으로 실행하면 된다 2020. 12. 21.
git push 에러 에러 내용: failed to push some refs to git push origin mastergit push -u origin mastergit push -f origin master등 git push 에러가 발생했을 시 해결 git push 입력 후 github 아이디와 비밀번호 입력 2020. 12. 3.
git commit 에러 에러 내용 *** Please tell me who you are. Run git config --global user.email "you@example.com" git config --global user.name "Your Name" to set your account's default identity.Omit --global to set the identity only in this repository. 해결 git config --global user.email "you@example.com" git config --global user.name "Your Name" 2020. 12. 3.
git 브랜치 삭제 에러 git branch를 삭제하려고 하는 상황에서 에러가 발생했다. cannot delete branch check out at 다음과 같이 에러 문구를 출력하였는데, 사용중이던 브랜치에서 commit 되지 않은 내용이 있어 삭제가 되지 않은 것으로 보인다. 현재 branch의 변경된 내용들을 commit하고 난 후, git checkout master Git branch -d or git branch -D 명령을 수행하면 정상 삭제 될 것이다 2020. 11. 6.