Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issues setting up repo from scratch #968

Open
isbur opened this issue May 19, 2024 · 1 comment
Open

Issues setting up repo from scratch #968

isbur opened this issue May 19, 2024 · 1 comment

Comments

@isbur
Copy link

isbur commented May 19, 2024

Android 14 AFAIK
I did the following:

  1. First, created a note
  2. Second, created an empty GitHub repo
  3. Then, set it as host via app
  4. While cloning, I got an error that remote is empty (wow!). I expected the app to push my note and initialize remote with it.
  5. So I created a dumb note via GitHub and successfully cloned the remote.
  6. Now I had two notes in my root folder: the original one and the dumb one.
  7. Of course, the app failed to correctly merge my note and a dumb one in one commit, as far as understood. I tried to delete the note, but it lead only to proliferating new unsynced commit.
  8. So I opened raw mode of my original note, copied to third place, deleted the whole local repository, cloned remote again and only then added my original note and only then it synced correctly

Well, I understand a bit, why all of this happened, the short answer is "because this is how git works", but I think that adding some logical glue to eliminate even a possibility for someone to undertake such a journey would be nice for every newcomer.

@dbarnett
Copy link

Seeing similar, trying to use the GitHub easy setup and create a repo from scratch but it fails with "Exception: Exception: GitFetch failed with error code: remote repository is empty". Would that be just because I created a local note before trying to set up sync, you think? Did you happen to find any workaround that might help get my issue unstuck too?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants