gpt4 book ai didi

android - Android Studio中项目的备份

转载 作者:太空狗 更新时间:2023-10-29 13:20:42 27 4
gpt4 key购买 nike

我们都知道项目的备份在编程中的重要性,特别是当您对代码进行重大更改以尝试新事物时。但最终您发现您之前所做的最后更改是正确的。或者有时您只是搞砸了整个项目。所以必须有项目的备份。

那么您是否知道一种将本地备份到您机器的其他位置的方法,正如我们所知道的 mySql 和 Visual Studio 所做的那样。我只知道一种方法,那就是从项目资源管理器中复制项目并将其传递到其他地方。

您知道进行此类备份的任何其他方法吗? (我不想通过互联网备份。谢谢)

最佳答案

Android studio 由 Intellij 提供支持,它对 Local History 具有内置支持

Local History, which is your personal real-time version control system. Local History is independent of external version control systems and works with the directories of your project even when they are not under any VCS control.

Local history is cleared when you install a new version of IntelliJ IDEA or when you invalidate caches. Therefore, check in the changes to your version control system before performing these operations.

Source - official IntlliJ documentation

Local Hostory 功能的详细描述 here

Local History is independent of external version control systems and works with the directories of your project even when they are not under any VCS control. It applies to any structural artifacts: a project, a directory or package, a file, a class, class members, tags, or selected fragment of text.

Unlike usual version control systems, Local History is intended for your personal use, it does not support shared access.

With Local History, IntelliJ IDEA automatically tracks changes you make to the source code, results of refactoring, and state of the source code based on a set of predefined events (testing, deployment, commit or update).

Local History revisions are marked with labels, which are similar to versions in traditional version control systems. Labels based on predefined events are added to the local revisions automatically; besides that, you can put your own labels to the project artifacts to mark your changes. Reverting or viewing differences are performed against these labels.

关于android - Android Studio中项目的备份,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29432941/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com