git checkout과 커밋된 파일 되돌리기(revert)

Kyle_Kim·2022년 9월 29일
0

checkout 명령어는 다른 브런치로 이동할때 사용된다.

git checkout feature/aoiJobLibrary

또한 checkout을 통해 수정되면 안되는 파일을 revert할 수 있다.

예를 들어 커밋된 legacy파일을 되돌리고 싶다면?

아래와 같은 cmd로 되돌릴 수 있다.

git checkout commit_hash file_path
profile
Make Things Right

0개의 댓글