Skip to content

GitLab Next

    • GitLab: the DevOps platform
    • Explore GitLab
    • Install GitLab
    • How GitLab compares
    • Get started
    • GitLab docs
    • GitLab Learn
  • Pricing
  • Talk to an expert
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
    • Menu
    Projects Groups Snippets
  • Get a free trial
  • Sign up
  • Login
  • Sign in / Register
  • GitLab FOSS GitLab FOSS
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Merge requests 0
    • Merge requests 0
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Package Registry
    • Container Registry
    • Infrastructure Registry
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Code review
    • Insights
    • Issue
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar

GitLab 15.0 is launching on May 22! This version brings many exciting improvements, but also removes deprecated features and introduces breaking changes that may impact your workflow. To see what is being deprecated and removed, please visit Breaking changes in 15.0 and Deprecations.

  • GitLab.org
  • GitLab FOSSGitLab FOSS
  • Issues
  • #26388
Project 'gitlab-org/gitlab-ce' was moved to 'gitlab-org/gitlab-foss'. Please update any links and bookmarks that may still have the old path.
Closed
Open
Created Jan 05, 2017 by Job van der Voort@JobV🚀Contributor

Push to create a new project

If I have a repo somewhere (locally), right now I have to first go to GitLab and manually create a project.

When I create a new project locally, I want it to feel just as easy as instant Git branching to push my brand new project to GitLab, so that I don't need to leave my current context to go to GitLab to manually create project. I want to stay in the terminal and for using GitLab to feel as magic as using Git!

That can be much faster. My repo already has a name, GitLab has me as a user: we can simply allow the person to push to a specific git path to create a new project.

Proposal

  1. I should be able to push a new project to my own personal namespace

git push git@gitlab.com:JobV/awesome-new-website.git master ```

  1. My newly created project will be private

  2. I will receive feedback to setup my remote and view the project

remote: remote: The private project JobV/awesome-new-website was created. remote: remote: To configure the remote, run: remote: git remote add origin git@gitlab.com:JobV/awesome-new-website.git remote: remote: To view the project, visit: remote: https://gitlab.com/JobV/awesome-new-website remote: ```

If the project already exists, we process the push normally. If the user is trying to create a new project with a project name already in use it will be rejected because the projects will be diverged.

Ideas to reduce the scope of the first iteration:

  • only support the users own namespace: supporting groups and subgroups may not require much more development, but will require more testing.

Future ideas (out of scope)

Optionally we can allow you to set the visibility by using -o public -o internal:

-o, --push-option
           Transmit the given string to the server, which passes them to the pre-receive as well as the post-receive hook.
           The given string must not contain a NUL or LF character.

Links / references

cc @gl-product @DouweM @stanhu @dzaporozhets

Edited Dec 20, 2017 by James Ramsay (ex-GitLab)
Assignee
Assign to
Time tracking