【问题标题】:How can I add a repository to github with terminal?如何使用终端将存储库添加到 github?
【发布时间】:2022-01-28 00:16:14
【问题描述】:

我们必须创建存储库并将数据从一个应用程序上传到github,而不是在应用程序系统中存储任何数据......这是可能的

【问题讨论】:

  • 欢迎来到 StackOverflow!您的问题需要一些工作,以便社区可以更好地帮助您。看看how to ask a good question,再试一次。

标签: github repository


【解决方案1】:

当前数据是如何存储的?如果保存在目录中,您可以 .gitignore 不希望推送的文件,然后按照这些说明从 GitHub 命令行将代码存储在 repo 中。

https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/adding-an-existing-project-to-github-using-the-command-line

您也可以在 GitHub 中创建存储库并将其链接到您的本地存储库: https://docs.github.com/en/github/importing-your-projects-to-github/importing-source-code-to-github/importing-a-git-repository-using-the-command-line

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-04-06
    • 2021-10-03
    • 2017-01-03
    • 2011-11-04
    • 2012-09-23
    • 2019-08-04
    相关资源
    最近更新 更多