Gradle 프로젝트 인식이 안될 때

Feb 06, 2024
Gradle 프로젝트 인식이 안될 때
  • board-v1 main test PS D:\workspace\spring_lec\springboot-blog-v4\blog> git commit -m "정상" [board-v1 94e22fc] 정상 1 file changed, 1 deletion(-) delete mode 160000 spring-blog-v1 PS D:\workspace\spring_lec\springboot-blog-v4\blog> git checkout main PS D:\workspace\spring_lec\springboot-blog-v4\blog> git branch board-v1
  • main Auto-merging build.gradle Auto-merging src/main/java/shop/mtcoding/blog/board/BoardController.java
  • board-v1 test Switched to a new branch 'master' PS D:\workspace\spring_lec\springboot-blog-v4\blog> git branch board-v1 main
  • master test PS D:\workspace\spring_lec\springboot-blog-v4\blog> git branch -D master error: cannot delete branch 'master' used by worktree at 'D:/workspace/spring_lec/springboot-blog-v4/blog' PS D:\workspace\spring_lec\springboot-blog-v4\blog> git branch -D main Deleted branch main (was 405a5a4). board-v1
  • master test PS D:\workspace\spring_lec\springboot-blog-v4\blog> git add . PS D:\workspace\spring_lec\springboot-blog-v4\blog> git commit -m "초기화 완료" [master 8e362bf] 초기화 완료 9 files changed, 10 insertions(+), 181 deletions(-) delete mode 100644 src/main/java/shop/mtcoding/blog/_core/Constant.java delete mode 100644 src/main/java/shop/mtcoding/blog/board/Board.java delete mode 100644 src/main/java/shop/mtcoding/blog/board/BoardRepository.java delete mode 100644 src/main/java/shop/mtcoding/blog/board/BoardResponse.java PS D:\workspace\spring_lec\springboot-blog-v4\blog> git push origin master To https://github.com/vosw1/spring-blog-v1.git ! [rejected] master -> master (fetch first) error: failed to push some refs to 'https://github.com/vosw1/spring-blog-v1.git' hint: Updates were rejected because the remote contains work that you do not hint: have locally. This is usually caused by another repository pushing to PS D:\workspace\spring_lec\springboot-blog-v4\blog> git checkout -b board-v2 Switched to a new branch 'board-v2' PS D:\workspace\spring_lec\springboot-blog-v4\blog>
Share article
RSSPowered by inblog