question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Feature] Create a "git init" sub-generator

See original GitHub issue

This 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:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:13 (13 by maintainers)

github_iconTop GitHub Comments

2reactions
deepu105commented, Oct 2, 2017

so you ok to do it directly in the app generator without a sub gen?

0reactions
jduboiscommented, Oct 11, 2017

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 a git add .would fail)

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found