본문 바로가기
IDE/GIT

git사용시 덮어씌우기

by forkballpitch 2022. 3. 18.
728x90
728x90

git 사용시 파일을 리파지토리기준으로 덮어씌우고 싶을 때 아래와 같이 실행

git fetch --all

git reset --hard origin/main

git pull

728x90
728x90

'IDE > GIT' 카테고리의 다른 글

github에 contribute 하기  (0) 2019.09.04
jira 설치하기  (0) 2019.01.10
github 폴더 커밋  (0) 2017.07.26
git 기초 퍼옴  (0) 2017.07.20
https://stackoverflow.com/questions/18588974/git-prevents-pushing-after-amending-a-commit  (0) 2017.07.19