사진 출처 : https://namu.wiki/w/GitHub
Github Flow를 하기 위해서는 먼저 깃허브에 레포지토리를 생성해야 한다.
깃허브에 레포지토리 생성을 위해 https://github.com/new 접속.
Repository name* 칸에 생성하고 싶은 레포지터리 이름을 작성 후 하단에 있는 Create Repository 클릭.(생성 완료)
인텔리제이 접속 => 새 프로젝트 생성 => File => settings=> 매번 설정해야 하는 것 설정
sttings => Plugins => 롬북 설치
build.grandle 파일 클릭 => build.grandle 파일의 dependencies란에 아래 사항 추가
dependencies {
testImplementation 'org.assertj:assertj-core:3.24.2'
//롬북 추가
implementation 'org.projectlombok:lombok:1.18.30'
annotationProcessor 'org.projectlombok:lombok:1.18.30'
//테스트 환경에서 롬북 사용
testImplementation 'org.projectlombok:lombok:1.18.30'
testAnnotationProcessor 'org.projectlombok:lombok:1.18.30'
}
인텔리제이 하단의 Terminal 클릭 => local 칸 옆에 있는 아래 방향키 클릭 => Git Bash 클릭
생성한 git bash 터미널에서 git status, git init, git remote add origin 깃허브 레포지터리 주소, git remote -v 를 차례대로 입력 ->깃허브에 연결 완료.
git add . && git commit -m "settings" , git push origin main 를 차례로 입력 -> 깃허브 세팅 완료