4 ms·
One great feature of Gitea is that you can create private repos without using the UI/CLI by adding a git remote. git remote add origin https://my.gitea/use
by abdusco 4y ago
One great feature of Gitea is that you can create private repos without using the UI/CLI by adding a git remote.
git remote add origin https://my.gitea/user/new_repo
git push
# user/new_repo is created as a private repo
Super cool. Does Github have such a feature?
- INTPenis 4y agoNot sure about Github but Gitlab does. It just creates a new repo under your account when you push to a non-existing one. Seems like a very basic feature to me. And the default setting happens to be private.
- filmgirlcw 4y agoNot sure if doing it that way will create a private repo or not (at the airport and I can’t check), but you can use the GitHub CLI to do it. I’m a huge fan of the CLI, but obviously being able to do it without that is nice. https://docs.github.com/en/get-started/quickstart/create-a-repo https://docs.github.com/en/get-started/quickstart/create-a-r...
- madacol 4y agoJust tested, github fails
- unqueued 4y agoFor GitHub, using the hub[1] client, you can simply do: hub create -p That will create a new private repo, matching the name of your repository. What I will often do if I want to instantly mirror something to github: hub create -p --remote-name=github Which will create a new remote with that name. Otherwise origin will be used, which can conflict if you already have an origin remote. It is also less typing. [1]: https://github.com/github/hub https://github.com/github/hub
- phpisthebest 4y agoI dislike organizations that take open source things like git, and then extend them to add features making them propriety work flow lock in making it hard to move to a new platform Another company was famous for this, they used to call it Embrace, Extend, Extinguish
- unqueued 4y agoWell, with the hub cli, it is just using GitHub's public API. I don't think it is doing anything proprietary.
- rglullis 4y ago> I don't think it is doing anything proprietary. Does github provide the code of their servers that implements the API? Can you self-host it? If not, then it is pretty proprietary.
- gurjeet 4y agoNotably, SourceHut has this feature.
- ajnin 4y agoGitlab does, as well as gitolite (which is a very lightweight, repository-only solution without a GUI or any of the fancy features like merge requests but it's perfect for my personal needs. Repo creation on push it the main feature that made me choose it. It is administered through git as well which I think is nice).