简体   繁体   English

使用 Github Desktop 将 firebase 功能放在 Github 上

[英]Using Github Desktop to put firebase functions on Github

Normally when I upload a project to Github I enable version control for the project, but I have created a firebase functions project and it seems like there is no way in visual studio code to enable version control, so how do I upload this project to Github?通常,当我将项目上传到 Github 时,我会为项目启用版本控制,但我已经创建了 firebase 函数项目,并且似乎在 Visual Studio 代码中无法启用版本控制,所以我如何将此项目上传到 ZE1ADBCBB92C622D0ABFZ60D ?

After rereading your title I now realize that you wanted to do this from github desktop.重读您的标题后,我现在意识到您想从 github 桌面执行此操作。 Which I am not familiar with.我不熟悉。 here is a guide from github.这是来自 github 的指南。 Creating your first repository using GitHub Desktop 使用 GitHub 桌面创建您的第一个存储库

Here is how i suggest you do it这是我建议你这样做的方法

When you create a github project from github.com there is an option to create an empty repository without a readme(this is the default).当您从 github.com 创建 github 项目时,可以选择创建一个没有自述文件的空存储库(这是默认设置)。 It gives you instruction on how to add a project from your terminal它为您提供有关如何从终端添加项目的说明

echo "# test" >> README.md
git init
git add README.md
git commit -m "first commit"
git remote add origin git@github.com:wbedu/test.git
git push -u origin master

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

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