본문 바로가기

형상관리

(9)
[Intellij] 웹 어플리케이션 배포 패키지 유형, war, war(exploaed) 차이 개요회사 프로젝트 실행은 Spring Applications에서 Main Controller을 실행시키지 않고 따로 Tomcat 서버를 구동시킨다.Tomcat 서버를 Run하는 과정에서 war가 아닌 war(exploaed)로 실행시켜야 하고 이에 대한 차이점도 있는 것을 알게되어 정리하기 위한 게시물이다. 기본빌드(Build) : 소스코드 파일을 실행 가능한 소프트웨어 산출물로 만드는 일련의 과정을 말한다.Maven에서 Artifact : maven build의 결과로 얻을 수 있는 일반적인 .jar나 .war 또는 여타의 실행 파일을 의미한다. 빌드로 생성되는 프로젝트의 결과물이다.배포(Deploy) : 응용 프로그램을 서버 상에서 활용할 수 있도록 구동시키는 것을 의미한다. 실행 가능한 파일을 서버..
[Git Error] error: failed to push some refs to "http://github.~" 문제 처음 로컬에서 git init 입력 후 원격으로 git push -uf origin main으로 하려고 했을때 Enumerating objects: 7379, done. Counting objects: 100% (7379/7379), done. Delta compression using up to 8 threads Compressing objects: 100% (5010/5010), done. Writing objects: 100% (7379/7379), 15.01 MiB | 97.88 MiB/s, done. Total 7379 (delta 1593), reused 7379 (delta 1593), pack-reused 0 remote: Resolving deltas: 100% (1593/1593)..
[Git Error] git pull 시 mege 오류 발생한 경우 강제로 덮어쓰기 팀원들과 같이 프로젝트를 하던 도중 master에서 brance들을 합치고 merge하고 pull 하고 있었다. 근데 어느순간 충돌이 나서 pull 하는데 에러가 났다. 이미 커밋까지 했기 때문에 변동 사항이 없어 stash/ add 을 할 수 도 없는 상황 그래서 강제로 pull을 하기로 했다. 주의 할 점은 로컬에서 내가 작성했던 파일이 날라 갈 수 있으니 사용시 주의해야 한다. 1. git pull을 하기 위해 깃허브의 repository에서 커밋 정보를 확인한다. git fetch --all 2. 혹시 모르니 git branch 최신정보도 받아온다. git remote update 3. git reset을 통해 head를 최신 커밋을 가르키게 한다. hard 옵션은 강제로 head를 옮기는 것으로..
[오류] error: src refspec main does not match anyerror: failed to push some refs to git init git add . git commit -m "커밋 메세지" git remote add origin "repository 주소" git push -u origin main
협업한 repository 내 github repository 로 가져오기 1. git clone --mirror old-repository.git(옮기고 싶은 git주소) 2. cd old-repository 3. git remote set-url --push origin new-repository.git(새로운 git주소) 4. git push --mirror
Git branch 병합하기 현재 상태 exp 브런치는 버전 3,4를 가지고 있고 main은 5까지 되어있다. * commit 711f85eda1b73d691cff78ab5e810b34c5628931 (HEAD -> main) | Author: jungmin.park | Date: Thu Nov 2 09:34:22 2023 +0900 | | 5 | | * commit 3e33a79f7229f9d1380efb12876bfa66c9258791 (exp) | | Author: jungmin.park | | Date: Thu Nov 2 09:33:16 2023 +0900 | | | | 4 | | | * commit 54d7d726dceefd4628c9b2ac77d06eb3ffa22e8f |/ Author: jungmin.park | Dat..
Git branch/log 옵션 시작하기전 셋팅 Desktop > git > gitfth3에서 작업을 진행 (base) bagjeongmin@bagjeongmin-ui-MacBookAir git % mkdir gitfth3 (base) bagjeongmin@bagjeongmin-ui-MacBookAir git % ls -al total 24 drwxr-xr-x 6 bagjeongmin staff 192 10 28 13:14 . drwx------@ 24 bagjeongmin staff 768 10 27 09:07 .. -rw-r--r--@ 1 bagjeongmin staff 8196 10 28 11:37 .DS_Store drwxr-xr-x 5 bagjeongmin staff 160 10 27 09:47 gitfth drwxr-xr-x..
Git log 옵션/reset/commit 옵션 log -p (버전에 대해 파악) log -p 옵션을 사용하면 버전간의 차이점과 과거 어느시점의 내용을 파악할 수 있다. 각각의 커밋과 커밋사이 소스상의 차이점을 알 수 있다. commit 96f4ef4bc9d69df35bdd54c1529680eba9fc61b2 (HEAD -> master) Author: jeongmin Date: Tue Dec 27 13:57:17 2022 +0900 4 diff --git a/f2.txt b/f2.txt index 2456b16..d170595 100644 --- a/f2.txt +++ b/f2.txt @@ -1 +1 @@ -source : 2 +source : 4 commit 5d6ec50fbacee1d06a4c2d7e67a7a516321ca53a Author: j..