Parameterizing the github username as well
See original GitHub issueWould you be open to parameterize the github user name, and adjust all relevant paths to use that, instead of kentcdodds
? One reason I ask is because it’s not quite equivalent to generate a new project, and then make a project-wide search-and-replace kentcdodds
with my username, because there are still some places where the string kentcdodds
needs to be preserved (links to things specifically in your github, like the all-contributors
specification, for instance).
I’ve been thinking the generator could ask for it in the setup process, and even detect it from ~/.gitconfig
if the user has that set there:
// ~/.gitconfig
[github]
user = gnapse
With the above in place, then this works
$ git config --global user.gnapse
gnapse
And it could even suggest the user to save it to ~/.gitconfig
.
Issue Analytics
- State:
- Created 5 years ago
- Comments:5 (3 by maintainers)
Top Results From Across the Web
Setting your username in Git - GitHub Docs
Setting your Git username for every repository on your computer · Open TerminalTerminalGit Bash. · Set a Git username: $ git config --global...
Read more >Change GitHub Account username - Stack Overflow
You can change your Github account name at any time. To do this, click your profile picture > Settings > Account Settings >...
Read more >Parameters not expanded in username or password portion of ...
When a parameterized job attempts to use the value of the parameter as the username or password of an https based git repository...
Read more >Parameterization API - ELKI
ELKI includes a generic parameterization API that is used for the command ... to use for the developers as well as more powerful...
Read more >Pipeline options for Git repositories - Azure - Microsoft Learn
Options that are available when using a Git repository with Azure ... the Checkout clean checkbox that is added for the runtime parameter....
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
Closing for inactivity
Thanks. So long as it’s not too complicated then I’m fine with it. Especially if it’s just a few lines of code (because it’s using an npm module for it or something).