Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Set the git config user.email on cloned repositories #21

Open
stickycode opened this issue Dec 4, 2018 · 4 comments
Open

Set the git config user.email on cloned repositories #21

stickycode opened this issue Dec 4, 2018 · 4 comments
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Milestone

Comments

@stickycode
Copy link
Member

I have many different identities so I cannot set the user.email globally for git it per project.

Having this configured by branchout would be very handy

@stickycode stickycode self-assigned this Dec 4, 2018
@stickycode stickycode added enhancement New feature or request good first issue Good for newcomers labels Dec 4, 2018
@stickycode stickycode removed their assignment Dec 4, 2018
@stickycode stickycode added this to the GA milestone Dec 4, 2018
@stickycode stickycode changed the title Set the git config user.email on clones repositories Set the git config user.email on cloned repositories May 31, 2019
@stickycode
Copy link
Member Author

I would expect something like this

For the case where this is not set

branchout init git@github.com/ExampleOrganisation/example
branchout clone new-project
Please enter your git email: michael@stickycode.net
Please enter your git user: Michael McCallum
Saving settings in ~/branchout/ExampleOrganisation/Branchoutrc
Cloning new
Cloning new-project
Pulled      new                    master
Pulled      new-project        master

Looking at the settings

cat ~/branchout/ExampleOrganisation/Branchoutrc

We find these values now

GIT_AUTHOR="Michael McCallum"
GIT_AUTHOR_EMAIL="michael@stickycode.net"

@stickycode stickycode added the help wanted Extra attention is needed label May 31, 2019
@fredcooke
Copy link
Collaborator

I agree, this would be a great feature, but unless some of your identities are pseudonyms then it's fine to set your name in your global file and set email on particular repos. I have name set globaly and have had for years, and a script on my path for fred.set.git.email and company.set.git.email and clientX.set.git.email etc depending on the machine and work and scenario etc.

@stickycode
Copy link
Member Author

stickycode commented Feb 12, 2021 via email

@fredcooke
Copy link
Collaborator

We should make this happen. I have some additional ideas about it to share with you, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants