我在自己的Labtop上编码,将代码推送到github。然后将其克隆到我的计算机中。 (环境当然不同)
我在计算机上完成了所有工作。回家。我删除了旧项目,然后将其克隆回我的Labtop,而不是执行“ git stash”和“ git pull”,因为当我使用“ git stash”和“ git pull”时,vcs.xml和workspace.xml中会发生冲突。 pycharm创建的想法。
在那之后,即使解释器中显示的路径仍然是
,我在Labtop上的pycharm也无法识别解释器我无法在Google上找到它,因为要搜索的关键字不明显。
答案 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
将: