简体   繁体   English

如何返回项目的先前版本或如何在pycharm中创建备份保存?

[英]How do you go back to previous version of your project or create back up save in pycharm?

I want to make some major changes to my code, but these changes could break the whole thing so I want a save or something I could revert to in pycharm. 我想对代码进行一些重大更改,但是这些更改可能会破坏整个内容,因此我需要保存或我可以在pycharm中恢复的内容。 Is there some way making something like that, especially for a huge project with many files. 有什么办法可以做类似的事情,特别是对于一个有很多文件的大型项目。

Have you considered using git? 您考虑过使用git吗? It's used for something called source control, which allows you to manage multiple versions of your files. 它用于称为“源代码控制”的东西,它使您可以管理文件的多个版本。 You can even create branches which allow you to try out a change in one version and if you end up liking it, you can merge it with your other versions. 您甚至可以创建分支,使您可以尝试在一个版本中进行更改,如果最终喜欢,可以将其与其他版本合并。 https://git-scm.com/ Github is a great way to store your versions in the cloud in case your computer gets destroyed. https://git-scm.com/ Github是一种将您的版本存储在云中的好方法,以防您的计算机被破坏。 https://github.com/ https://github.com/

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM