<aside> 💡
</aside>
Remote Repo clone 받아오기
git clone <https://github.com/BarmiSpeechLab/backend>
Remote와 Local에 존재하는 모든 브랜치 확인
git branch -a
Local로 가져오고 싶은 브랜치 가져오기 (origin/develop인 경우)
git checkout -t origin/develop
check out이란 → 브랜치를 전환하거나 특정 커밋의 상태로 작업 디렉토리를 변경하는 명령어
원하는 ‘원격 브랜치’로 push
git push origin temp_branch
Github에서 pull request 요청
git log 기록 확인하여 commit-hash 확인
git log
git log 결과에서 복구하고 싶은 commit에 대한 hash확인
commit c863947404bde5c92b0a5b2f5f640f1738080199 (HEAD -> airflow, origin/airflow)
Author: sunwoo <lsw2207@gmail.com>
Date: Thu Aug 28 10:01:07 2025 +0900
ISSUE#6 file removed
ISSUE#6 file removed commit에 대한 취소를 수행하고 싶으면 c863947404bde5c92b0a5b2f5f640f1738080199 이게 commit -hashrevert로 commit 추가하기
git revert c863947404bde5c92b0a5b2f5f640f1738080199
push 해서 remote에 반영 해주기 ! (remote에 data-collection을 생성하고 싶다면)
git push origin data-collection
Repo 이름을 바꾸면 프로젝트 사이트 URL을 제외한 모든 기존 정보가 새 이름으로 자동으로 리디렉션 됨
웹트래픽을 리디렉션하는 것 외에도 이전 위치를 대상으로 하는 모든 git clone, git fetch, git push는 새 위치에서 수행된 것처럼 계속 작동 but 혼동을 주리려면 새 리포지토리 URL을 가리키도록 기존 로컬 클론을 업데이트하는 것 권장
git remote set-url origin MEW_RUL