git clone <ttps://github.com/본인ID/Study_Group.git
cd Study_Group
git remote add upstream <https://github.com/hoeyoon/Study_Group.git>
중요: 새로운 문제를 풀 때마다 반드시 아래 순서를 지켜주세요. ① 원본 저장소 최신화 (Sync) 작업 전 항상 메인 레포의 최신 상태를 가져와 내 master를 업데이트합니다.
git switch master
git pull upstream master
git push origin master
② 문제 전용 브랜치 만들기 master 브랜치에서 해당 문제만을 위한 독립된 브랜치를 생성합니다.
git switch -c feat/문제번호
# 예: git switch -c feat/prob01
③ 코드 작성 및 커밋
경로: 주차/문제번호/본인이름.c (예: week02/01/gildong.c)
저장:
git add .
git commit -m "몇주차 문제번호 이름"
④ 내 저장소에 올리기 (Push)
git push origin feat/문제번호