| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 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 |
- sendRedirect
- GitLab
- pycharm
- Merge
- rebase
- springboot
- Flask
- 인텔리제이
- gitbash
- 첫프로젝트
- Push
- 병합
- 코드비교
- enV
- 브랜치
- 가상환경
- err_too_many_redirects
- getrequesuri
- pom.xml
- git
- git 전략
- Python
- maven wrapper
- FETCH
- contextPath
- branch
- 파이참
- Wrapper
- github
- 브랜치전략
- Today
- Total
목록IT/GIT (3)
오류공장
이미 별도 브랜치를 작업 중인데 main 의 내용을 받고싶으면보통 2가지 방식을 많이 사용한다.1. fetch + merge (협업에 안전)# 원격 main 최신 가져오기git fetch origin main# 현재 작업 브랜치에서 mergegit merge origin/main지금 브랜치 그대로 있으면서 origin/main 내용을 합칩니다.충돌이 나면 해결 후 git add . → git commit 하면 끝.히스토리에 merge 커밋이 하나 생깁니다.2. fetch + rebase (히스토리 깔끔)# 원격 main 최신 가져오기git fetch origin main# 현재 작업 브랜치 기준을 main 최신으로 변경git rebase origin/main커밋 로그를 직선으로 정리해주기 때문에 히스토리..
1) 브랜치 생성 (로컬)기준 브랜치(보통 main 또는 develop) 최신 상태에서 분기합니다.# 기준 브랜치 최신화git checkout maingit fetch origingit pull origin main# 새 브랜치 생성 및 이동git checkout -b feat/menu# 또는: git switch -c feat/menu 2) 작업 중(로컬)파일 수정 → 스테이징 → 커밋git add # 또는 git add .git commit -m "feat(menu): 메뉴 관리 화면 및 API 연동 기본 구현"커밋 메시지 예시: type(scope): 요약 스타일 권장(예: feat(menu): 메뉴 트리 조회 API 연동).3) 작업 브랜치 원격에 올리기 (초회)git push -u ori..
github 홈페이지에서 repository를 생성https://github.com/ GitHub: Let’s build from hereGitHub is where over 100 million developers shape the future of software, together. Contribute to the open source community, manage your Git repositories, review code like a pro, track bugs and fea...github.com “git init” 명령어. 로컬 저장소 생성프로젝트 폴더에서 GitBash 실행 “git status” 명령어. 현재 브런치의 상태 확인빨간색으로 된 파일들이 모두 “add” 되기 전 상태 “gi..