로컬 상태로 원격 저장소를 덮어씌우고 싶을 때


git push -f <remote> <branch>



반대로,

원격 저장소 상태로 로컬을 초기화 하고 싶을 때


git reset --hard <remote>/<branch>


'Programming > Git' 카테고리의 다른 글

untracked working tree files would be overwritten by checkout  (0) 2017.02.10

+ Recent posts