반응형
문제상황:
git bash로 commit까지는 git log로 확인했을 때 정상적으로 작동합니다.
그러나 이후 git push -u origin main 을 하면 커서만 깜빡이고 bash가 아무 동작도 하지 않는 현상이 발견되었습니다.
그리고 git bash를 종료하려고 하면 아직 진행중인데 그래도 끌꺼냐는 안내창이 나옵니다.
인터넷에서 방화벽이 문제다, git을 다시 설치해봐라 등은 효과가 없었습니다..
해결법:
git 연동할 폴더에 들어간 상태로 cmd를 킵니다. (내폴더 위쪽 경로창에 cmd 치면 바로 가실 수 있습니다)
(저는 윈도우여서 cmd를 썼는데 다른 플랫폼으로도 가능할 것 같습니다)
그리고 동일하게 git push -u origin main 까지 진행하면
- 인터넷연결 승인 어쩌고저쩌고
- 개인 승인 토큰 어쩌고저쩌고
이렇게 뜨는데 1을 치고 엔터를 치면 아이디/비밀번호를 치라는 창이 뜹니다.( 전 여기서 로딩이 길어서 충분히 시간을 주고 타이핑했습니다)
-> 이제는 2 토큰을 이용해서 접속해야함.
그러면 push가 완료되며, 이후부터는 git bash에서도 push가 잘 되는 것으로 확인했습니다.
출처 : https://www.codeit.kr/community/threads/28278
반응형
'기타' 카테고리의 다른 글
MacBook] 키보드 사용 후기 (0) | 2023.08.21 |
---|---|
개발 블로그 선택하기: Tistory vs GitHub Blog vs Velog (0) | 2023.06.08 |
git 로컬 저장소(working directory) 완전 제거하는법 (0) | 2021.08.24 |
SQL 코딩 테스트 사이트 (0) | 2021.08.10 |
2. SQL 궁금증 고민 1 : HAVING AS 오류 (0) | 2021.08.09 |