문제현상)
- vsCode > fetch시 다음에러 발생 This repository has no remotes configured to fetch from.
- vsCode > 다시불러오기 아이콘 클릭시 No remotes found in the git config file.
- vsCode > 마우스오른쪽버튼눌러 gitHistory 보기 클릭시
git rev-list --full-history --count main -- (completed in 0.554s)
fatal: bad revision 'main'
backend는 성공 - vscode > git history
git rev-list --full-history --count develop -- factoryOne-FARMOS/src/main/resources/mappers/postgresql/mdm/mdmProcessInfo.xml (completed in 0.684s)
git log --full-history --pretty=oneline --date-order --decorate=full --skip=0 --max-count=100 develop --follow -- factoryOne-FARMOS/src/main/resources/mappers/postgresql/mdm/mdmProcessInfo.xml (completed in 0.697s)
git shortlog -e -s -n HEAD (completed in 0.735s)
근데 왜 frontend는 실패? vscode > git history (branch가 main으로 잡히는 것이 문제인듯)
git rev-list --full-history --count main -- src/screen/dev/alarm/Alarm.js (completed in 0.515s)
fatal: bad revision 'main'
git log --full-history --pretty=oneline --date-order --decorate=full --skip=0 --max-count=100 main --follow -- src/screen/dev/alarm/Alarm.js (completed in 0.502s)
fatal: bad revision 'main'
git shortlog -e -s -n HEAD (completed in 0.511s)
fatal: ambiguous argument 'HEAD': unknown revision or path not in the working tree.
Use '--' to separate paths from revisions, like this:
'git <command> [<revision>...] -- [<file>...]'
vsCode에서뿐 아니라 gitBash에서도 frontend소스만 자동으로 main이라는 브랜치로 잡힘
main이라는 브랜치가 있기는 한데, 유휴상태인듯
- Active branches: develop
- Stale branches: main (3개월간 작업이 없는 브랜치)
참고로 stale brach삭제하려면
git remote prune origin
문제해결)
숨김폴더 보기해서 .git상태 확인해보니
- factoryone-farmos: .git 있음
- factoryOne-FARMOS(backend): .git없음
- farmos-web-app(frontend) .git있음 -> 없앴더니 해결됨