정리/Git hub2 fatal: refusing to merge unrelated histories 해결법 pull 명령시 fatal: refusing to merge unrelated histories 이라는 문구가 나오면서 진행이 되지 않는다면 git pull origin 브런치명 --allow-unrelated-histories 이 명령어로 pull을 해보자 저런 오류가 발생하는 이유는, git에서는 서로 관련 기록이 없는 이질적인 두 프로젝트를 병합할 때 기본적으로 거부하기 때문이라고 한다. --allow-unrelated-histories 명령을 통해 이질적인 두 프로젝트를 병합할 수 있게 허락해주는 것이다. 출처https://gdtbgl93.tistory.com/m/63?category=774133 2019. 4. 25. Git Bash 사용법 git config (최초 1회 실행) // git commit에 사용될 username git config --global user.name "your_name" // git commit에 사용될 email git config --global user.email "your_email@example.com" // 설정한 내용을 확인할 수 있다. git config --list git init 현재 디렉토리를 로컬저장소로 설정한다. // 로컬저장소로 설정한다. // (master) 브랜치로 보이면 성공한 것이다. git init // 만약 init을 취소하려면 아래의 명령어를 입력한다. rm -r .git git status 로컬저장소의 현재 상태를 보여준다. git add 파일을 준비영역(Staging .. 2019. 4. 19. 이전 1 다음