[로컬 저장소] 브랜치 이름 변경 $ git branch -m 기존브랜치명 변경할브랜치명 230212-daeun ➡️ 230215-daeun 로 변경하였다. $ git branch -m 230212-daeun 230215-daeun $ git status On branch 230215-daeun [원격 저장소] 브랜치 이름 변경 $ git push origin 변경할브랜치명 $ git push origin --delete 기존브랜치명 새로운 브랜치 푸시 + 기존 브랜치 삭제 한번에 하기 $ git push origin :기존브랜치명 변경할브랜치명
add 취소하기 : staged 상태를 unstage 로 변경 $ git restore --staged {파일명} $ git restore --staged ../batch/src/main/kotlin/com/beside/backend/batch/job/wisesaying/WiseSayingJobConfiguration.kt $ git status On branch daeun Changes to be committed: (use "git restore --staged ..." to unstage) new file: ../api/src/test/kotlin/com/beside/backend/api/service/emotion/EmotionServiceTest.kt Changes not staged for c..

git stash * git add 명령어로 한번이라도 index 영역에 트래킹 된 파일만 stash영역에 저장한다. stash로 파일 임시 저장하기 저장하기 tracked 된 파일 모두 stash git stash 저장하기 + 명칭추가 : save git stash save "설명" 목록보기 : list git stash list 적용하기 1 : apply : 적용 후에도 리스트에 유지 git stash apply 가장 최근의 stash 적용 * 원하는 저장이력 적용 git stash apply stash@{숫자} ex) git stash apply 2 적용하기 2 : pop 적용 후 리스트에서 삭제 git stash pop 가장 최근의 stash 적용되고 삭제 * 원하는 저장이력 적용 git stas..
브랜치 생성, 삭제, 조회, 체크아웃 브랜치 생성 git branch 생성할브랜치명 분기해서나올브랜치명 $ git branch testbranch master -> master 브랜치에서 testbranch 이라는 브랜치를 생성한다. 브랜치 삭제 로컬 브랜치 삭제 git branch -d 브랜치명 $ git branch -D branchname Deleted branch branchname (was e7f33f9). -d 옵션 : 브랜치에 병합되지 않은 변경 사항, 푸시되지 않은 commit 이력이 있으면 -d 로 로컬 브랜치를 삭제할 수 없다. 이런 경우 -D 옵션을 이용하여 브랜치를 삭제할 수 있다. git branch -D 로컬브랜치명 -D 옵션 : --delete --force(강제 삭제)의 줄임..

github에서 Repository 생성하기 * terminal에서 명령어 입력 git 초기화 git init repository 연결 git remote add origin {repositoryURL} git remote add origin git@github.com:daeuun/project-name.git (+ 연결된 repo 삭제) 오타났으면 사용..ㅎㅎ git remote rm origin 연결된 repository fetch/push 확인 git remote -v 새로 만든 repository의 내용 가져오기 git push origin {기본브랜치명} github 정책에 의해서 기본 브랜치 이름이 master에서 main으로 변경되었다. git pull origin master stage에 ..
- Total
- Today
- Yesterday
- ChatGPT
- Cannot construct instance of
- Kotlin
- 자바 어플리케이션 실행 과정
- MongoDB
- Java
- port
- checkout
- jvm warm-up 전략
- 배열
- FetchJoin
- bucket4j
- QueryDSL
- 오블완
- dto 클래스 생성자
- JPA
- array
- Linux
- addFilterBefore
- MultipleBagFetchException
- spring boot 3
- 티스토리챌린지
- redisson 분산락
- 추상클래스
- Git
- 스프링오류
- n+1
- 스프링 스케줄링
- Spring Security
- junit5
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | ||||||
2 | 3 | 4 | 5 | 6 | 7 | 8 |
9 | 10 | 11 | 12 | 13 | 14 | 15 |
16 | 17 | 18 | 19 | 20 | 21 | 22 |
23 | 24 | 25 | 26 | 27 | 28 | 29 |
30 | 31 |