Pycharm- und Quellsteuerung, das .idea-Verzeichnis, verpflichten oder nicht begehen, das ist die Frage

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

Frage

Ich habe ein neues pycharm project und Möchten Sie es mit mercurial .

Es gibt ein .idea-Verzeichnis im Projektverzeichnis mit den folgenden Dateien (und meiner Annahme darüber, ob sie erfahren oder nicht)

    .
  • .name - Enthält den Namen des Projekts (Version: ja )
  • codiers.xml - enthält Standardwerte (?) Für Textdateicodierung (Version: ja )
  • misc.xml - Enthält etwas über Komponenten, und welche zur Verwendung von Python (Version: nein - da er den Pfad zu python.exe fardcodiert)
  • modules.xml - Enthält eine Liste von Modulen, mit dem Namen des Projekts in ihnen (Version: ja )
  • projectname.iml (Version: ja )
  • vcs.xml - Gibt an, welche VCs verwendet werden (Version: ja
  • workspace.xml - scheint Layoutinformationen für Pycharm Windows aufzulisten (Version: nein )

    sind meine Annahmen richtig?

War es hilfreich?

Lösung

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

Andere Tipps

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/*
Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top