Skip to content
This repository has been archived by the owner on Oct 26, 2022. It is now read-only.

Configure the git user based on the host machine #57

Closed
becw opened this issue Oct 12, 2018 · 3 comments
Closed

Configure the git user based on the host machine #57

becw opened this issue Oct 12, 2018 · 3 comments

Comments

@becw
Copy link
Member

becw commented Oct 12, 2018

It would be great if we could set the git user.name and user.email based on the user's host, so that commits made within the Vagrant environment were properly attributed (per the-build #66).

@byrond
Copy link
Contributor

byrond commented Oct 13, 2018

Copying the .gitconfig seems to be a common example:
https://www.vagrantup.com/docs/provisioning/file.html

We could either add that into the Vagrantfile or include it with the other Ansible provisioning.

My .gitconfig has a global gitignore specified, so that path would need to be translated and that file copied in, too (if that's a frequent inclusion).

@byrond
Copy link
Contributor

byrond commented Oct 13, 2018

We also may want to prompt the user to configure Git, if they don't have a .gitconfig.

@becw
Copy link
Member Author

becw commented Nov 28, 2018

Released in version 2.2.2. Thanks, @byrond!

@becw becw closed this as completed Nov 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants