본문 바로가기
Backend

[Git] Pipfile을 gitignore에 넣어야 할까?

by 개발하는 디토 2022. 11. 18.

결론부터 말하면 아니다.

 

Pipfile, Pipfile.lock 모두 version control에 업로드되어야 한다. 

그 이유는 Pipfile이 내가 어떤 가상환경을 사용해서 개발했는지 dependency를 알려주기 때문이라고 한다.

따라서 Pipfile, Pipfile.lock 등은 gitignore에 포함하지 말고 함께 커밋해주자.

 

찾아본 자료

 

git - Should Pipfile.lock be committed to version control? · Issue #598 · pypa/pipenv

When two developers are working on a projet with different operating systems, the Pipfile.lock is different (especially the part inside host-environment-markers). For Composer, most people recommen...

github.com

 

 

Git - Should Pipfile.lock be committed to version control?

When two developers are working on a project with different operating systems, the Pipfile.lock is different (especially the part inside host-environment-markers). For PHP, most people recommend to

stackoverflow.com

 

댓글