We're sunsetting Firebase Studio on March 22, 2027. To continue building, migrate your Firebase Studio projects to Google AI Studio or Google Antigravity.
Learn how to migrate .
提供意見
將應用程式上傳至 GitHub
透過集合功能整理內容
你可以依據偏好儲存及分類內容。
您可以將 Firebase Studio 與 GitHub 整合,確保專案備份無虞,並與他人共用。
。
事前準備
將專案新增至 GitHub
如要將專案新增至 GitHub,請按照下列步驟操作:
在開啟的工作區中,依序選取「View」(檢視) 選單和「Source Control」(來源控管) ,或按下 Ctrl-Shift-G (在 macOS 中為 Cmd-Shift-G)。
如果您在 App Prototyping agent 中使用 Prototyper
view, first click
Switch to Code to open Code view.
查看「來源控制」圖表。如有任何未提交的變更,請使用下列任一方法在本機提交:
在「Source Control」窗格中:
按一下「修訂版本」 。
系統提示要暫存變更時,請按一下「是」 。
在開啟的 COMMIT_EDITMSG 檔案中,新增描述變更的提交訊息。
儲存並關閉檔案。
從終端機:
如要查看未提交的檔案,請執行:
git status
將檔案新增至來源控制系統:
如要新增單一檔案,請執行:
git add [ list of files]
如要新增所有未驗證的檔案,請執行:
git add *
修訂變更:
git commit -m "Your commit message describing the changes."
警告: 請檢查要上傳至 GitHub 的檔案,確保未上傳任何 API 金鑰或其他密鑰。在.gitignore檔案 中新增任何排除條件。
在「Source Control」(來源控制) 窗格中,按一下「Publish Branch」(發布分支) 。
系統提示登入 Git 時,請按一下「允許」 ,然後按照指示驗證。
完成驗證後,返回 Firebase Studio 視窗,在有效欄位中輸入專案名稱,然後選取下列其中一個選項:
提示: 建議先上傳至私人存放區。您隨時可以在 GitHub 將存放區設為公開。 後續步驟
提供意見
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權 ,程式碼範例則為阿帕契 2.0 授權 。詳情請參閱《Google Developers 網站政策 》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2026-03-13 (世界標準時間)。
想進一步說明嗎?
[[["容易理解","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-03-13 (世界標準時間)。"],[],[]]