본문 바로가기

Dev. Etc/Git

[ SourceTree ] 깃 소스트리 기능마무리시 sourcetree Fatal: Could not fetch

 

 

sourcetree로 브랜치를 만들어 작업을 할 때 기능별 featrue를 생성해 작업합니다.

그리고 해당 작업이 완료되면 '깃 플로우'기능을 사용해 기능 마무리 및 자동 develop 브랜치에 머지하면서 삭제하는데 해당 작업을 할 때 아래와 같은 에러가 발생하였습니다...

 

Fatal: could not read username for 'https //github.com' device not configured

sourcetree Fatal: Could not fetch feature/#8 from origin.

 

 

 

 

위 스샷처럼 git config credential.helper를 먼저 입력해줍니다.

저와 같이 osxkeychain으로 출력이 될것입니다.

현재 설정이 osxkeychain이 되어있기에, git config credential.helper sourcetree로 변경해줍니다.

그리고 다시 확인하여 sourcetree로 변경되었는지 확인했을때 위와 같이 나오면 해결된것입니다.

다시 시도하시면 이제 되실겁니다!