当在两台计算机之间克隆同一项目的github时,pycharm无法找到解释器

时间:2019-07-06 21:55:02

标签: python git github pycharm

我在自己的Labtop上编码,将代码推送到github。然后将其克隆到我的计算机中。 (环境当然不同)

我在计算机上完成了所有工作。回家。我删除了旧项目,然后将其克隆回我的Labtop,而不是执行“ git stash”和“ git pull”,因为当我使用“ git stash”和“ git pull”时,vcs.xml和workspace.xml中会发生冲突。 pycharm创建的想法。

在那之后,即使解释器中显示的路径仍然是

,我在Labtop上的pycharm也无法识别解释器

我无法在Google上找到它,因为要搜索的关键字不明显。

2 个答案:

答案 0 :(得分:0)

您可以通过右键单击新项目并将其作为根目录,然后将文件粘贴到其中,这可能会有所帮助。

答案 1 :(得分:0)

请注意,typical JetBrains.gitignore会忽略任何workspace.xml文件。
如果tony = turtle.Turtle() tony.color("white", "cyan") tony.speed(5.5) def on_canvas(): position = tony.pos() if position in data: tony.pendown() print("This is a coordinate") else: tony.penup() print("This is not a coordinate") for z in data: playground.ontimer(on_canvas, 1) tony.goto(z) turtle.done() 模具包含特定于工作站的路径,您可能也希望忽略它。

想法是在第二个环境中的IDE中重新导入克隆的存储库项目。

with Git 2.6+,请使用:

vcs.xml

然后一个简单的git config --global pull.rebase true git config --global rebase.autoStash true 将:

  • 自动保存您正在进行的工作
  • 在更新的远程跟踪分支顶部重放(重新设置)本地提交。