News for hackers. Stuff that matters.
Re:Show HN: I made a tool, create GitHub Repository from loc... by notpushkin on Tuesday January 17, 2023 @09:07PM (#34422559)
I love that GitLab allows you to just push your repository directly:

https://docs.gitlab.com/ee/user/project/working_with_project...

Unfortunately, I keep forgetting about that and keep creating the project by hand (also gives me some time to pause and think about naming / description, and set repo visibility for a public project).

UPD: Gitea / Forgejo takes it one step further and allows you to specify visibility when pushing like this:

    git push -o repo.private=false -u [email protected]:example/hello master
(Doesn't seem to work on Codeberg, though)

https://docs.gitea.io/en-us/push-options/

Re:Show HN: I made a tool, create GitHub Repository from loc... by codetrotter on Tuesday January 17, 2023 @09:08PM (#34422565)
This page is not readable on my iPhone :(

Here is a more readable version of that same page: https://archive.is/nRpOi#create-a-new-project-with-git-push

Re:Show HN: I made a tool, create GitHub Repository from loc... by notpushkin on Tuesday January 17, 2023 @09:20PM (#34422662)
Huh, that's weird – I've just checked and it looks fine on my Android, and in Safari in responsive design mode. :thinking:
Re:Show HN: I made a tool, create GitHub Repository from loc... by smaudet on Wednesday January 18, 2023 @12:20AM (#34423676)
I think this tool has merit where gh doesn't, in that it can/could integrate with other hosts.

Github is a cancer on the git community - I know we tend to like "easy, fast, convenient" so mega-providers like GH or Gitlab are bound to occur, but we invariably find the downsides (centralized censorship, product placement, loss of features or random security vulns due to companies forgetting that the "simple" system is actually built on something complex) in the longterm.

I'm not saying GH shouldn't exist, what would be even cooler is if a tool like wfh, in addition to pushing folders to github/gitlab, could push folders to arbitrary servers - if you own the domain/server and have the appropriate access, brand new git repo auto-hosted.

Re:Show HN: I made a tool, create GitHub Repository from loc... by notpushkin on Wednesday January 18, 2023 @12:40AM (#34423764)
It's not that bad actually, self-hosting is a thing – if you own the server, just set up your own Gitea or GitLab CE or something.

Shameless plug: I'm working on a tool which lets you get Gitea (or anything else that can be run with a docker-compose) running on a server in a couple minutes. You can install it with a single curl | sh, then you get a nice panel in which you can paste your Compose file, make a couple tweaks and click Deploy.

Gitea is actually the example app I picked for tutorial: https://lunni.dev/deploy/

Re:Show HN: I made a tool, create GitHub Repository from loc... by vorpalhex on Wednesday January 18, 2023 @01:13AM (#34423908)
There was an effort (though it seems to have died out) to bring federation to "software forges" (vcs + ci, etc).

I love the idea of having a standard way of repos and CI such that everyone brings their own forge, builds their contribution out and upstreams.

Re:Show HN: I made a tool, create GitHub Repository from loc... by pjerem on Wednesday January 18, 2023 @02:36AM (#34424321)
I’d add that, even when you put aside everything you mentioned, GitHub isn’t even a good product to host your company’s code.

It’s designed like a social network for open source stuff and it really shows in the UX.

However, most companies uses GitHub to host their private repos and GitHub is pretty dumb at it. The core feature companies will use is Pull Requests but the implementation is garbage vs GitLab. The rest is either useless in corporate environment or not good enough.

From my experience, GitHub is everywhere because founders used it by automatism and by the time you’d feel like you need an alternative, it’s too much pain to change anyway.

I’ve never seen any company having any reason to and wanting to transition from something else (except from SVN) to GitHub.

Re:Show HN: I made a tool, create GitHub Repository from loc... by chiefalchemist on Saturday January 21, 2023 @09:48AM (#34466767)
Agreed. These platforms want you locked in. Having agnostic tools helps you sleep at night, and keep them more honest than they might be otherwise.
Re:Show HN: I made a tool, create GitHub Repository from loc... by 3np on Wednesday January 18, 2023 @02:05AM (#34424166)
You're looking at the per-repo settings of gitea there - obviously push-to-create doesn't fit there (;

It's enabled for users/orgs via env vars ENABLE_PUSH_CREATE_USER/ENABLE_PUSH_CREATE_ORG. DEFAULT_PUSH_CREATE_PRIVATE sets whether new repos should be public or private (ideally this would be configurable by the user but oh well).

https://docs.gitea.io/en-us/config-cheat-sheet/#repository-r...

If Codeberg doesn't have t enabled, maybe suggest they enable it?