-
|
Created empty repo but not sure what to do, would be good to know where did it do that. and now push: skillshare push
Pushing to remote
─────────────────────────────────────────
ERROR Push failed
fatal: The current branch main has no upstream branch.
To push the current branch and set the remote as upstream, use
git push --set-upstream origin main
To have this happen automatically for branches without a tracking
upstream, see 'push.autoSetupRemote' in 'git help config'.
→ Remote may have newer changes
→ Run: skillshare pull
→ Then: skillshare push
Created Pulling from remote
─────────────────────────────────────────
ERROR git pull failed
From github.com:xxx/skills
* [new branch] main -> origin/main
There is no tracking information for the current branch.
Please specify which branch you want to rebase against.
See git-pull(1) for details.
git pull <remote> <branch>
If you wish to set tracking information for this branch you can do so with:
git branch --set-upstream-to=origin/<branch> main
✗ git pull failed: exit status 1 |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
this is what worked for me, instructions could be: cd ~/.config/skillshare/skills
git branch --set-upstream-to=origin/main main
git pull
skillshare pull
skillshare push |
Beta Was this translation helpful? Give feedback.
-
|
Hi! Thanks so much for taking the time to report this — and for sharing your workaround too, that's really helpful. You're absolutely right that this is confusing. The issue is that when I'm sorry about the friction — this should have just worked out of the box. Here's what's coming in the next release:
So after the fix, the whole flow will work seamlessly: skillshare init # set up remote to an empty repo
skillshare push # ✓ just works — upstream is set automatically
skillshare pull # ✓ just works going forwardNo more manual Thanks again for flagging this — it helps make skillshare better for everyone! |
Beta Was this translation helpful? Give feedback.
-
|
Thanks for reporting this! The push/pull first-sync issues have been fixed in v0.15.1. Specifically:
Please upgrade and let me know if you run into any other issues: skillshare upgrade |
Beta Was this translation helpful? Give feedback.
Thanks for reporting this! The push/pull first-sync issues have been fixed in v0.15.1.
Specifically:
pushnow auto-sets upstream tracking on first push — no more "has no upstream branch" errorspullcorrectly handles empty remotes and sets up branch tracking automaticallyinit --remoteon an existing config no longer failsPlease upgrade and let me know if you run into any other issues: