본문 바로가기

전체 글143

Git- 혼자개발 @메타코딩 #reset $ git reset --soft 9cce 커밋기록변경 $ git reset --mixed 9cce 파일내용변경 $ git reset --hard 9cce 파일 삭제 #reflog $ git reflog 모든 기록 $ git reset --hard ef2b $ git commit --amend -m "test1 생성완료" 커밋기록변경 #branch $ git branch topic $ git checkout topic $ git branch $ git merge topic Fast-forward 머지 $ git checkout -b topic Switched to a new branch 'topic' #rebase vim- d:drop esc->:wq $ git rebase -i .. 2022. 2. 24.
beancreationexception 에러 missing table spring.jpa.hibernate.ddl-auto = validate 2022. 2. 1.
스프링 프로젝트 #프로젝트 생성 https://start.spring.io/ -보통 gradle: 버전설정, 라이브러리 가져오기 -스프링 부트: 스냅샷 말고 -그룹: 회사 도메인 -Dependencies: Spring Web, Thymeleaf ->generate -IntelliJ>오픈 >빌드.gradle>오픈as프로젝트 -sourceCompatibility = '11' 자바버전 #실행 -Gradle 대신에 자바:실행속도가 더 빠름 -file Setting Build and run using: Gradle IntelliJ IDEA Run tests using: Gradle IntelliJ IDEA 2022. 1. 7.
IntelliJ 설치 https://www.jetbrains.com/ko-kr/idea/download/#section=windows -Community 다운 -C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2021.3.1 -Create Desktop Shortcut : 바탕화면에 바로가기 -Update PATH variable : 윈도우 환경 변수에 PATH를 자동으로 추가(체크) -Update context menu : 폴더 우클릭 IntelliJ에서 열기 -Create Association : .java, .groovy, .kt, .kts 확장자 파일을 클릭했을 때 IntelliJ로 실행 -Download and install 32-bit JetBrains Ru.. 2022. 1. 7.
자바11 설치 #자바11 https://www.oracle.com/java/technologies/downloads/#java11-windows JDK(JAVA Development Kit) : 자바로 개발을 할 수 있는 환경구성 환경변수 -변수 이름:JAVA_HOME -변수 값:C:\Program Files\Java\jdk-11.0.11 -변수 이름 : CLASSPATH -변수 값 : %JAVA_HOME%\lib -Path:새로 만들기 %JAVA_HOME%\bin -cmd: java -version, javac -version 2022. 1. 7.
협업 ##협업 #혼자 $ git init a $ cd a $ nano work.txt $ git add work.txt $ git commit -m "work 1" $ git remote add origin https://github.com/moon $ git push -u origin master 페어링시키기 한번만 #같이 세팅>Manage access>add people>참여자 승인>협업자 code 주소카피 $git clone https://github.com/moos b b라고 하는 디렉토리에 원격저장소 생성 #push&pull a: $nano work.txt $git commit -am "work 2a" $git push b: $git pull 원래는 해야함 안하면-> $nano work.txt $gi.. 2022. 1. 4.
branch & conflict ##branch & conflict #세팅 $ mkdir manual $ git init $ ls -al $ nano work.txt $ git status $ git add work.txt $ git commit -m "work1" $ git log $ nano work.txt $ git commit -am "work2" $ git log -p :각각의 버전마다 차이점 확인 #브랜치 $ git log --all --graph --oneline * c2fe51b (HEAD -> master) work3 * db2fb4f work2 * 5ba8750 work1 :모든 브랜치, 시각적, 한줄 $ git branch :브랜치 목록확인 $ git branch apple :애플 브랜치 생성 $ git branch.. 2022. 1. 2.
백업 백업 #원격 저장소 연결 $ git remote add origin https://github.com/닉네임/레포이름.git #원격 저장소 확인 $ git remote -v #올리기 $ git push #처음 할때 어떤 원격저장소랑 기본적으로 연결할지 $ git push --set-upstream origin master #에러: 제어판>웹자격증명>깃허브 삭제> 일반자격증명 추가> https://api.github.com/변경할 계정 이름>푸시>로그인 remote: Permission to aaa/my-repo.git denied to aaa. fatal: unable to access 'https://github.com/aaa/my-repo.git/': The requested URL returned .. 2021. 12. 26.