Enhance the deploy command to enable the setting of git user.name and user.email in deployment branch #9101
Closed
2 tasks done
Labels
feature
This is not a bug or issue with Docusausus, per se. It is a feature request for the future.
Have you read the Contributing Guidelines on issues?
Description
Enhance the deploy command to enable the setting of git user.name and user.email specifically for the deployment branch. This way, Git will utilize the local git configuration instead of the global configuration when making commits to the deployment branch.
Has this been requested on Canny?
NA
Motivation
In my system, I have separate configurations for my personal and work Git users. These configurations are set on a per-repository basis rather than globally. However, when I use the command "yarn deploy," it automatically sets the user.name and user.email to default values, which are based on my hostname. I would rather not share this information on GitHub and have the option to set the user.name and user.email that I would like to use for commiting changes to deployment branch.
API design
I have added 2 environment variables to set the user.name and user.email
Have you tried building it?
Yes, I have added 2 environment variables to set the user.name and user.email
Self-service
The text was updated successfully, but these errors were encountered: