Create new project from command line docs improvements
Problem
The Create a project from the command line guidance presented on the "create new project" flow offers the following command
git push --set-upstream git@gitlab.com:danielgruesso/$(git rev-parse --show-toplevel | xargs basename).git $(git rev-parse --abbrev-ref HEAD)
However, the docs for the "Push to create a new project" feature contain the following commands:
## Git push using SSH
git push --set-upstream git@gitlab.example.com:namespace/nonexistent-project.git master
## Git push using HTTPS
git push --set-upstream https://gitlab.example.com/namespace/nonexistent-project.git master
The following high level problems are present:
- The commands presented are different in the app vs docs
- The "what does this command do?" link takes user to docs that don't actually explain what the command does, instead it simply instructs on how to create a new project from the command line
- For new users, instructing them to push via SSH has pre-reqs, this is not stated in the docs
- For new users, instructing them to push via HTTPS requires them to know their namespace, docs don't indicate how to obtain it
- Docs don't indicate how to name the project, seasoned users can infer that
nonexistent-project.gitwill be the new name, but this will be harder for new users
Proposal
- Use the same commands in-app and in-docs
- Consider a "step by step" approach to instructions. Current docs assume user will know to open terminal, setup ssh, etc.
- Add a section that breaks down the command and what is doing
- Add section on how to create projects on a group vs personal namespace
Further info
- Docs https://docs.gitlab.com/ee/user/project/working_with_projects.html#push-to-create-a-new-project
- Competitor's step by step example for importing a local project https://docs.github.com/en/github/importing-your-projects-to-github/adding-an-existing-project-to-github-using-the-command-line
Edited by Daniel Gruesso
