2021-03-04

|

git 명령어 정리

git

프로젝트를 main에 서로 push해서 오류 발생
잘 되는 commit 지점 코드 확인
git reset 복원방식 복원지점
git reset –hard b3139b5 -> b3139b5라는 시점으로 hard하게 복원한다.
push -f -> push force 강제로 푸쉬
git push -f origin main -> main에 좀 전에 돌린 지점으로 강제 커밋한다.

Comments