【问题标题】:How to link a project to private git hub repo?如何将项目链接到私人 github 存储库?
【发布时间】:2021-08-03 16:59:11
【问题描述】:

我目前在 Android Studio 中使用 Flutter,想知道如何将项目链接到 android Studio 中的私有仓库?

顺便说一句,这是对我自己的一个浓缩的自我回答。

【问题讨论】:

  • 这与 Flutter 或 Dart 没有任何关系。

标签: android git flutter android-studio dart


【解决方案1】:
cd <project folder>
git init
git add .
git remote add origin https://github.com/USERNAME/project.git
git fetch origin
git commit -m "My first commit"
git push -u origin master

然后在android studio中

VCS -> Git -> 推送

【讨论】:

    猜你喜欢
    • 2017-08-29
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-01-16
    • 1970-01-01
    • 2018-11-14
    相关资源
    最近更新 更多