[Git] main 브랜치에서-> 다른 브랜치로 옮기려고 할때 발생한 에러
![[Git] IntelliJ git/untracked files prevent checkout move or commit them before checkout 오류발생 - undefined - [Git] main 브랜치에서-> 다른 브랜치로 옮기려고 할때 발생한 에러 [Git] IntelliJ git/untracked files prevent checkout move or commit them before checkout 오류발생 - undefined - [Git] main 브랜치에서-> 다른 브랜치로 옮기려고 할때 발생한 에러](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
[Git bash]에 들어간다. 그다음 본인이 만든 프로젝트로 이동해야 한다.
cd : [경로] 를 사용해서 프로젝트로 이동한다.
주의할점은 Git Bash에서 Windows 경로를 사용할 때 경로 구분자를 '/'로 사용하는 것이 일반적이며, Git Bash는 Unix 스타일 경로를 따르기 때문에 \ 대신 /를 사용해야 한다.
그러나 windows 명령프롬프트(cmd)나 Powershell에서는 경로 구분자로 '\'를 사용해야 한다.
![[Git] IntelliJ git/untracked files prevent checkout move or commit them before checkout 오류발생 - undefined - [Git] main 브랜치에서-> 다른 브랜치로 옮기려고 할때 발생한 에러 [Git] IntelliJ git/untracked files prevent checkout move or commit them before checkout 오류발생 - undefined - [Git] main 브랜치에서-> 다른 브랜치로 옮기려고 할때 발생한 에러](http://t1.daumcdn.net/tistory_admin/static/images/no-image-v1.png)
본인에게 맞는 경로로 이동했다면 [git clean -d -f -f]를 작성해서 clean을 해주면 해결된다.
'Git' 카테고리의 다른 글
[Git] Visual studio code를 GitHub와 연결하기 (0) | 2025.03.29 |
---|---|
[Git] branch 생성하기/삭제하기/변경하기 (0) | 2025.01.23 |
[Git] GitHub에 동영상 올리기 (0) | 2024.09.02 |
[IntelliJ] Git와 IntelliJ연동하기 (0) | 2024.06.20 |
댓글