Importing a private Github repo errors

Hey, all! The team is working on a fix and hopes to have it ready soon, but in the meantime, you can work around this by deleting the directory Firebase Studio creates and authenticating to GitHub on the command line.

Step-by-step directions:

  1. Open a terminal (Ctrl-Shift-C).

  2. Delete the directory that was created:

    1. cd .. ← verify that if you type pwd, you see /home/user.
    2. rm -r $repo_name
  3. Authenticate to GitHub with the GitHub CLI: Run gh auth login. You’ll get a nix message about fetching gh to run it.

  4. Press Enter to one-time install gh.

  5. Answer the following questions (this shows the HTTPS/browser flow, which is probably the fastest/easiest):

    • What account do you want to log into? GitHub.com

    • What is your preferred protocol for Git operations? HTTPS

    • Authenticate Git with your GitHub credentials? Yes

    • How would you like to authenticate GitHub CLI? Login with a web browser

  6. Copy your one-time code: [8 alphanumeric character code GitHub for GitHub auth] (copy this but don’t Ctrl-C and stop the auth process like I keep doing, haha!)

  7. Press Enter to open github.com in your browser and do the stuff GitHub requests.

  8. After authentication to GitHub is complete, run:
    git clone https://github.com/$repo_owner/$repo_name.git

  9. Change back into the repo directory (cd $repo_name).

Now, everything should show up in Explorer view and you can run standard git commands in the terminal to add files, commit, and push to your private repo.

Hope this helps and thanks so much for reporting this!

4 Likes