ETC
GitHub PR in other branch
Leehahoon
2024. 4. 25. 23:42
1. 원격 레포지토리 추가
git remote add upstream [remote repo]
2. 원본 레포지토리의 최신 변경 사항 가져오기
git fetch upstream
3. 새 브랜치를 원본 레포지토리의 master로 리셋
git checkout [branch]
git reset --hard upstream/master
4. 새 브랜치 생성 및 체크아웃:
git checkout master
git checkout -b [branch]
5. 원격 레포지토리와 동기화
git fetch origin
git reset --hard origin/master
6. 새 파일 추가 및 커밋
git add .
git commit -m "Add new file for specific feature"
7. 새 브랜치를 원격 레포지토리에 푸시:
git push -u origin [branch]
8. GitHub에서 PR 생성