Branchout / branchout

A manyrepo management tool to allow for local monorepo projecting while keeping everything in distinct repositories
Apache License 2.0
9 stars 2 forks source link

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

Open stickycode opened 5 years ago

stickycode commented 5 years ago

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 commented 5 years ago

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"
fredcooke commented 3 years ago

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 commented 3 years ago

I set name globally too.

On Sat, 13 Feb 2021, 00:15 Fred Cooke, notifications@github.com wrote:

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.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub https://github.com/Branchout/branchout/issues/21#issuecomment-778134199, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAG4GFCZBFP7JPEFXOF26YDS6UEUJANCNFSM4GIGHSPA .

fredcooke commented 3 years ago

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