[Feature] Create a "git init" sub-generator
See original GitHub issueThis is the same idea as #6440
I would like to have a small sub-generator for Git:
jhipster git-init
would initialize a Git repository, add all files to it, and commit with message “Initial application generation by JHipster” (like https://start.jhipster.tech does today)- This would run by default after each generation, but could be disabled with a flag
I’m also wondering if we could have the same after an entity is generated, but I’m less sure it’s a good idea.
Issue Analytics
- State:
- Created 6 years ago
- Reactions:1
- Comments:13 (13 by maintainers)
Top Results From Across the Web
git-init Documentation - Git
This command creates an empty Git repository - basically a .git directory with subdirectories for objects , refs/heads , refs/tags , and template...
Read more >git init | Atlassian Git Tutorial
The git init command creates a new Git repository. It can be used to convert an existing, unversioned project to a Git repository...
Read more >yeoman/generator - Gitter
Hi guys , i want to set up an env variable in the configuring priorty function in my sub-generator , how can i...
Read more >Upgrading an application - JHipster
For this sub-generator to work you need to have git installed from ... already initialized as a git repository, or else JHipster will...
Read more >Git Init: A Walk Through How to Create a New Repo | CloudBees
There are a few ways to create a repository: Using the git init command (with or without its flags). Creating a remote repository...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
so you ok to do it directly in the app generator without a sub gen?
So I removed the logs, but I’m not sure it’s good for error handling… Anyway, as long as Git is installed, all commands should work (if you can do a
git init
, I don’t understand how agit add .
would fail)