goldstar611 / gitless

A maintained fork of the simple git interface
https://goldstar611.github.io/gitless/
MIT License
26 stars 2 forks source link

Ask to create remote instead of failing #16

Closed goldstar611 closed 2 years ago

goldstar611 commented 2 years ago

I tried to be helpful by enhancing the error message on how to fix the situation in the same way that git does, but neither solution worked.

user@host /mnt/spinnydisk/git/gitless.git/master (update_requirements) $ gl push
✘ No dst branch specified and the current branch has no upstream branch set

You can fix this by either using
    gl publish remote/branch
each time or
    gl branch --set-upstream remote/branch
one time to set the upstream branch

user@host /mnt/spinnydisk/git/gitless.git/master (update_requirements) $ gl push origin/update_requirements
✘ Branch "update_requirements" doesn't exist in remote "origin"

user@host /mnt/spinnydisk/git/gitless.git/master (update_requirements) $ gl branch --set-upstream origin/update_requirements
✘ Branch "update_requirements" doesn't exist in remote "origin"