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

Could GIT_TOGETHER_GLOBAL be an environment variable? #41

Open
cwlbraa opened this issue Jun 28, 2019 · 1 comment
Open

Could GIT_TOGETHER_GLOBAL be an environment variable? #41

cwlbraa opened this issue Jun 28, 2019 · 1 comment

Comments

@cwlbraa
Copy link

cwlbraa commented Jun 28, 2019

see https://github.com/pivotal/git-author/issues/22 for a full reproduction of the real issue in our development environment.

In multi-repo development environments (all of CF) we'd like to be able to set authors for all repos globally, every time. We also use git aliases heavily. git-author fits most of our needs, but leaves a small gap where using git with ab cd can set local repo state. Once that state is set, it frequently sticks around and sneaks into our commit messages. We'd like to effectively disable running git with without the --global flag, and it seems like an environment variable would make that really easy.

@kejadlen
Copy link
Owner

Makes sense - I'd been wanting to add a configuration for this in git's config, rather than an environment variable, though. You could set git-together.global to true or something in the global ~/.gitconfig to permanently turn it on and make it impossible to set a local git pair accidentally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants