본문 바로가기
소프트웨어 개발/기타정보

[Git] Having uncommitted changes. Exiting..

by Sakriun_to 2022. 6. 16.
728x90
What are the steps when you encounter fatal: Dirty repository: Having uncommitted changes. Exiting..
해결방법 : git commit -am "modify"

 

[commit 관련 옵션]

-m : vim에서 별도의 메세지를 작성할 필요없이 인라인 형식으로 바로 커밋 메세지 작성.

-a : 별도의 add명령어를 사용하지 않고 수정된 파일에 대해 add, commit을 한번에 수행함. (단, 한번도 add되지 않은 파일은 add를 따로 작업 해줘야함.)
-am : a, m의 옵션을 합친 형태.
$ git commit -m "메세지"
$ git commit -a
$ git commit -am "메세지"

 

728x90
반응형

댓글