카테고리 없음

[IntelliJ] 기존 프로젝트와 Git Repository 연결하기

kjyyjk 2023. 3. 11. 01:20

github에서 Repostiroy 생성

 

우측의 HTTPS 하단 링크를 복사한다.

 

intellij의 settings 에서 github 검색 후 내 github과 연동

 

intellij 공식문서의 메뉴얼

 

VCS - Enable Cersion Control Integration 클릭  / Git을 선택 후 확인

https://www.jetbrains.com/help/idea/set-up-a-git-repository.html#put-existing-project-under-Git

 

 

 

후에 상단의 Git 카테고리에서 Manae Remotes를 선택

 

원격 저장소를 추가해준다 / 앞에서 github에서 복사했던 링크 복붙 / OK

 

연결 완료!!

 

좌측 바에는 commit / pull request 선택바가 생겼고 아직 commit하지 않은 파일들이 빨갛게 보인다.

 

 

Commit 하고자 하는 파일 선택 후 Commit / 나는 바로 Commit And Push 버튼을 클릭

 

push

 

 

짠~~

 

이제 intellij에서 작업하는 내용 바로바로 commit push 등 git과 연동하여 사용할 수 있다.