Git, GitHub

    Mac에서 git branch했을 때 출력창이 길어지는 문제

    Mac에서 git branch했을 때 출력창이 길어지는 문제

    문제 * develop main ~ ~ ~ ~ (END) q를 누르면 종료 가능합니다! 하지만 넘 불편하네요 바꿔봅시다 해결 참고한 포스팅 https://stackoverflow.com/questions/51015733/git-branch-end-on-terminal

    [Git Bash] git remote add error (fatal: protocol 'https' is not supported)

    [Git Bash] git remote add error (fatal: protocol 'https' is not supported)

    2019. 11. 29 글 옮김 fatal: protocol 'https' is not supported remote를 추가할 때 위와 같은 오류가 뜸 오류 고친다고 bash 껐다 켜서 오류를 캡쳐하진 못했다. 구글링한 결과 원인은 인터넷에서 복사한 주소를 붙여넣어서 그렇다고 한다. 수기로 쳐줘서 해결 ​ 참고 https://skylit.tistory.com/431

    [Git Bash] git push/pull error: refusing to merge unrelated histories

    [Git Bash] git push/pull error: refusing to merge unrelated histories

    2019. 11. 29 글 옮김 push가 안먹힘 이유는 로컬 저장소 -> 원격저장소로 반영하려고 했을 때 원격저장소가 내 로컬저장소보다 이전버전이 아니라고 함 (push 할때는 내 로컬 저장소가 최신버전이여야 하는구나..) 원격저장소를 생성했을 때 README.md 파일이 생성된 커밋이 내 로컬 저장소 커밋 로그에 없어서 그렇다고 함 ​ 원격저장소를 땡겨와서 로컬 저장소로 받아오자 pull을 해준다(원격저장소 가져와서 fetch + 복사 merge) commit이 없다고(unrelated histories) merge 거부됨. 공통되는 옵션썼는데도 안먹힘.. .git 삭제하고 처음부터 다시 이번에도 거부함 파일이름은 같은데 내용이 달라서 충돌되는 거였음 VSC 켜서 README.md 파일을 GitHub..

    [Git Bash] error: Pulling is not possible because you have unmerged files.

    [Git Bash] error: Pulling is not possible because you have unmerged files.

    git pull하다가 conflict 남. 파일을 수정하고 다시 pull하면 에러가 남 첨엔 잔머리굴려서 그냥 아무커밋 날리고 push 하곤했는데.. 그냥 잔꾀낸거라. 정공법은 뭔지 찾아봤다. git status git commit -am "메세지아무거나입력" 요래하면 된다. 수정된 파일이 수정된게 아니라 같은 파일 2개라고 인식되서 그런듯?