在 Cloud Code for IntelliJ 中使用 Cloud Source Repositories
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
通过 Cloud Code,您可以将新项目添加到 Cloud Source Repositories,还可以签出现有项目。
准备工作
-
登录您的 Google Cloud 账号。如果您是 Google Cloud 新手,请创建一个账号来评估我们的产品在实际场景中的表现。新客户还可获享 $300 赠金,用于运行、测试和部署工作负载。
-
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Go to project selector
-
确保您的 Google Cloud 项目已启用结算功能。
-
In the Google Cloud console, on the project selector page,
select or create a Google Cloud project.
Go to project selector
-
确保您的 Google Cloud 项目已启用结算功能。
上传源代码
将代码从 Cloud Code 上传到 Cloud Source Repositories:
打开要添加到 Cloud Source Repositories 的项目。
点击 VCS > 上传到 Cloud Source Repositories。
在对话框中,使用相应下拉菜单选择与您的项目关联的 Cloud 项目。
使用下拉菜单选择您的云端代码库。
如果您没有代码库,或者要创建新的代码库,请点击 Create a new cloud repository。
Cloud Code 会打开一个指向 Google Cloud 控制台的新浏览器窗口,以便您创建新的代码库。
默认情况下,Cloud Code 会设置远程名称。您可以在 New Remote Name 字段中输入其他名称。
点击上传。
浏览源文件
上传源代码后,在 Google Cloud 控制台中浏览代码:
在 Google Cloud 控制台中,选择包含您的源代码的项目。
在左侧导航栏的工具部分,选择开发 > 源代码库。
签出源代码
如需从 Cloud Source Repositories 中签出源代码,请执行以下操作:
选择 VCS > Get from Version Control...。
- 从 Version Control 下拉列表中选择 Google Cloud,然后点击 Clone。
- 在 Clone from Google Cloud 对话框中,选择与您的项目关联的 Cloud 项目。
- 选择您的云端代码库。
- 选择父级目录。
- 输入目录名称。
- 点击 Clone。
您也可以从 Welcome 屏幕中签出,方法是选择 Get from Version Control,然后从“Version Control”下拉列表中选择 Google Cloud。此时将显示 Clone from Google Cloud 对话框。
获取支持
如需在 IntelliJ IDE 中提交反馈或报告问题,请依次前往
Tools >
Cloud Code >
Help / About >
Submit feedback or Report an issue,以便在
GitHub 上报告问题,或者在
Stack Overflow 上提问。
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-09-13。
[{
"type": "thumb-down",
"id": "hardToUnderstand",
"label":"Hard to understand"
},{
"type": "thumb-down",
"id": "incorrectInformationOrSampleCode",
"label":"Incorrect information or sample code"
},{
"type": "thumb-down",
"id": "missingTheInformationSamplesINeed",
"label":"Missing the information/samples I need"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]
{"lastModified": "\u6700\u540e\u66f4\u65b0\u65f6\u95f4 (UTC)\uff1a2024-09-13\u3002"}
[[["易于理解","easyToUnderstand","thumb-up"],["解决了我的问题","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["翻译问题","translationIssue","thumb-down"],["其他","otherDown","thumb-down"]],["最后更新时间 (UTC):2024-09-13。"]]