원본 Repository에서 코드를 받고 수정해서 사용하는 경우가 많은데, Repository Update가 자주 일어나는 경우 Git을 통해 업데이트 하는 과정 정리
git remote add upstream [원본 레포지토리 URL]
git fetch upstream
git merge upstream/main
# Example
error: Your local changes to the following files would be overwritten by merge:
src/diffusers/__init__.py
src/diffusers/models/__init__.py
Please commit your changes or stash them before you merge.
수정 방법
git add <수정된 파일>
git commit -m "충돌 해결 및 마커 제거"
git push origin [내 브랜치 이름]