pycharm 및 소스 컨트롤, .idea 디렉토리, 커밋 또는 커밋하지 않고, 그 질문입니다.

StackOverflow https://stackoverflow.com/questions/5039442

문제

나는 새로운 pycharm 프로젝트를 시작하고 Mercurial .

다음 파일이있는 프로젝트 디렉토리에는 .IDEA 디렉토리가 있습니다 (및 버전을 버전할지 여부에 대한 가정)

  • .name - 프로젝트의 이름을 포함합니다 (버전 : )
  • encodings.xml - 텍스트 파일 인코딩에 대한 기본값 (?)이 포함되어 있습니다 (버전 : )
  • misc.xml - 구성 요소에 대한 뭔가가 포함되어 있으며, 어떤 파이썬을 사용하도록 실행 가능합니다 (버전 : no )
  • modules.xml - 프로젝트의 이름이있는 모듈 목록 (버전 : ) 버전 목록이 포함되어 있습니다.
  • projectname.iml (버전 : )
  • vcs.xml - 사용할 VC (버전 : )를 지정합니다.
  • workspace.xml - Pycharm Windows의 레이아웃 정보를 나열하는 것으로 보인다 (버전 : no )

    가정이 정확합니까?

도움이 되었습니까?

해결책

All files except workspace.xml should be shared, see the FAQ.

다른 팁

Depends on whether you want to share just the code or share the code and project settings too.

For just sharing the code, I add the following to the .hgignore file:

^.idea
^.idea/*
/*/.idea
/*/.idea/*

The patterns are a bit overkill, but they eliminate all the PyCharm/Workspace stuff.

We primarily use Subversion where I work and I frequently create a Mercurial repo on top of the Subversion checkout to play with possible tweaks and changes. If you go that route and in particular if you chain the Mercurial repos, then add these entries to the .hgignore file too:

^.svn
^.svn/*
/*/.svn
/*/.svn/*
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top