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

Connect to GitHub does not work as expected #14

Open
dalonsoa opened this issue Oct 23, 2024 · 0 comments
Open

Connect to GitHub does not work as expected #14

dalonsoa opened this issue Oct 23, 2024 · 0 comments

Comments

@dalonsoa
Copy link

This step, as described, adds the indicated remote to the local git and try to syncronyze the branches. But, there are two problems:

  • If there are no commits yet - which will be the case when setting everything up - you will get the following in the pop-up window:
>>> C:/Program Files/Git/bin/git.exe checkout -B main
Switched to a new branch 'main'
>>> C:/Program Files/Git/bin/git.exe push -u csvyr main
error: src refspec main does not match any
error: failed to push some refs to 'https://github.com/dalonsoa/csvyr'
  • The next step is partly redundant. The previous step already adds the remote, although it does not push the changes (as it fails).

First committing the changes and then following the steps above will not work, as the main branch would already exist. I think that the simplets process would be to:

  1. Create an initial commit
  2. Add the remote
  3. Push the changes

So, we skip the "Connect to GitHub" step.

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

1 participant