Firebase Studio 將於 2027 年 3 月 22 日起停用。如要繼續建構及部署新版應用程式,請在該日期前將 Firebase Studio 專案遷移至 Google AI Studio 或 Google Antigravity。瞭解如何遷移。
即使在服務終止日期過後,已部署至 Firebase 的應用程式仍會繼續執行。此外,所有核心 Firebase 產品 (例如 Firestore、Authentication、App Hosting 等) 不會受到 Firebase Studio 停用的影響。
Google uses AI technology to translate content into your preferred language. AI translations can contain errors.
將應用程式上傳至 GitHub
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以將 Firebase Studio 與 GitHub 整合,確保專案備份無虞,並與他人共用。
。
事前準備
將專案新增至 GitHub
如要將專案新增至 GitHub,請按照下列步驟操作:
在開啟的工作區中,依序選取「View」(檢視) 選單和「Source Control」(來源控管),或按下 Ctrl-Shift-G (在 macOS 中為 Cmd-Shift-G)。
如果您在 App Prototyping agent 檢視畫面中使用 Prototyper,請先按一下「切換至程式碼」
,開啟 Code 檢視畫面。
查看「來源控制」圖表。如有任何未提交的變更,請使用下列任一方法在本機提交:
在「Source Control」窗格中:
按一下「修訂版本」。
系統提示要暫存變更時,請按一下「是」。
在開啟的 COMMIT_EDITMSG 檔案中,新增描述變更的提交訊息。
儲存並關閉檔案。
從終端機:
如要查看未提交的檔案,請執行:
git status
將檔案新增至來源控制系統:
如要新增單一檔案,請執行:
git add [list of files]
如要新增所有未驗證的檔案,請執行:
git add *
修訂變更:
git commit -m "Your commit message describing the changes."
在「Source Control」(來源控制) 窗格中,按一下「Publish Branch」(發布分支)。
系統提示登入 Git 時,請按一下「允許」,然後按照指示驗證。
完成驗證後,返回 Firebase Studio 視窗,在有效欄位中輸入專案名稱,然後選取下列其中一個選項:
後續步驟
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-05-21 (世界標準時間)。
[[["容易理解","easyToUnderstand","thumb-up"],["確實解決了我的問題","solvedMyProblem","thumb-up"],["其他","otherUp","thumb-up"]],[["缺少我需要的資訊","missingTheInformationINeed","thumb-down"],["過於複雜/步驟過多","tooComplicatedTooManySteps","thumb-down"],["過時","outOfDate","thumb-down"],["翻譯問題","translationIssue","thumb-down"],["示例/程式碼問題","samplesCodeIssue","thumb-down"],["其他","otherDown","thumb-down"]],["上次更新時間:2026-05-21 (世界標準時間)。"],[],[]]