-
Notifications
You must be signed in to change notification settings - Fork 89
When creating a repo no upstream is set up. #99
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
Comments
from the help:
i.e.: if you do:
it will be added to the current repository, if you're in one. I decided to default to not change the local directory per default, because you're not necessarily creating a repository when you're in a directory you've already But, if you forgot to add, it's really not a big deal, you just do one more command:
cf the
I'm planning to split the huge Any thoughts? |
I must have missed that in the help output. But I just tried again with Re: default action: Can you explain what the use case/workflow for not adding a newly created repo as a remote is? Edit: Github seems to work. |
Because when you do As I considered that if you actually aimed to add the default upstream in current repository but forgot to do so, running |
I see, thanks!
I understand your reasoning now. Would you consider changing the default behaviour when inside a local repo without remotes? |
yup, the only tough thing would be to correctly explain it off in the documentation. Though, it might become easier to explain when I'll refactor the CLI part of git-repo (where you'll have |
I'm running git-repo version 1.9.0. When I run add (e.g. |
@metasean if you do if you do and when I'll release v1.10, |
First anniversary release 🎂 This release marks the first anniversary and 10th release of git-repo 🎉 Now git-repo supports 6 git services: github, gitlab, bitbucket, gogs, gitea and gitbucket It supports the following commands: clone, fork, create, delete, add, open, ls, request, gist And it's becoming relatively stable (keep sending bug reports 🙏) ♥ Contributors Thanks to @kounoike for the gitbucket support 🙌 Now there are three contributors promoted to collaborators: * @kounoike, @pyhedgehog and @Crazybus 🚧 Features * When add has no parameters, add default remote #100 #141 * When add has 'upstream' parameter, add the upstream remote #99 #141 * Use default branch instead of hardcoded 'master' #91 * Refactor and complete bitbucket support #43 #11 #80 #14 #89 #90 #79 * Loosen versions of dependencies #133 * Report if the service is already setup #136 * Adds GitBucket support #142 #144 * Adds support for ssh:// URL #148 🚒 Bugfixes * fix various crashes #152 * fix gitlab clone crash #129 * fix request create command #147 #127 * fix request fetch command #138 #131 * fix wizard crash #149 * fix mishandling of renamed gitlab project urls #137 📝 Documentation * documentation #145 Signed-off-by: Guyzmo <[email protected]>
When I run
git lab create group/repo
the repository is successfully created online but locally I still have no remotes set up.I started from a newly created repo without any remotes.
The text was updated successfully, but these errors were encountered: