Programming/Git

git 강제 push (Local -> Remote)

Aterilio (Jeongmee) 2017. 6. 12. 14:16



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


git push -f <remote> <branch>



반대로,

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


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


저작자표시 비영리 변경금지 (새창열림)