git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: git client enhancement request

From
Sean Allred <allred.sean@gmail.com>
Date
May 13, 2024, 17:56 UTC
Message-ID
<m0pltptx3h.fsf@epic96565.epic.com>
In-Reply-To
<02f201daa547$503df630$f0b9e290$@gmail.com>
<lbdyck@gmail.com> writes:
Show 6 quoted lines
> I would like to see the option to allow the git client to request the
> creation of a new empty git repository on the git server without
> having to open the web interface to the git server to define a new
> repository.
>
> Perhaps something like:  git server-repo public/private name

Is this even technically feasible? My understanding is that storage implementations of each forge vary *wildly*. I don't believe this would be under Git's ability to implement as a project.

You might look into combining your preferred forge's CLI with git aliases:

  - GitHub has 'gh': https://cli.github.com
  - GitLab has 'glab' https://docs.gitlab.com/ee/editor_extensions/gitlab_cli
so you could alias
    git config alias.server-repo '!gh repo create'
to get something of what you want.

I believe GitLab also has a feature where you can create repositories just by pushing an existing repository to an empty project path.

-- 
Sean Allred
Previous: lbdyck@gmail.comNext: lbdyck@gmail.com
Message 2 of 8 in “git client enhancement request”
  1. lbdyck@gmail.comMay 13, 2024
  2. Sean AllredMay 13, 2024
  3. lbdyck@gmail.comMay 13, 2024
  4. Junio C HamanoMay 13, 2024
  5. lbdyck@gmail.comMay 13, 2024
  6. brian m. carlsonMay 13, 2024
  7. rsbecker@nexbridge.comMay 13, 2024
  8. lbdyck@gmail.comMay 13, 2024

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.