-
Notifications
You must be signed in to change notification settings - Fork 86
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
Store tokens somewhere other than ~/.gitconfig #63
Comments
hm… I did not think about that. I guess it can't hurt to see if I can extend the Meanwhile you can use environment variables that we use for the testing to setup the tokens else where. Finally, you also have the option to have store your credentials locally to your workstation in a commit (using a branch) you don't push back to the repository, and merge the changes back… And there are a couple of tools to help with that, to manage local commits. |
I have had a thought about it, how would you feel about having credentials stored in ~/.netrc which look like a place commonly used for credentials… @colemickens any opinion on that? |
Seems reasonable to me. |
@colemickens you could also use set |
hm… @guyhughes did not know about that, but if it's actually working (we need to test that!), I guess this would be a case for not changing the credential storage mechanism, meaning less work for me ☺ @colemickens any opinions on that? |
I actually tested this, and it's working like a charm. 👍 So won't implement a .netrc option, and make a documentation about this feature. |
I've added a small utility that actually extract all Just run (currently from the devel branch):
which will extract the relevant configuration from
Hope it covers the issue ☺ |
Thanks for your effort providing an alternative solution to having the auth tokens written in .gitconfig But this still doesnt solve the issue that git-repo still assumes a .gitconfig must exist , or else it will force me to create one. I want to use $HOME/.config/XYZ as possible to all my configuration. Other git tools do it this way as well.
It will still go looking for other options in $HOME/.config/git/config. Ex: I do not want any other tool to CREATE without my consent a file that is or might be used to configure (and mess with) ANOTHER application configuration.That is, I do not want git-repo to force me to create that .gitconfig file in my system, when I already have my git config done some other way. I simply do not want that .gitconfig file to exist. My suggestion to make this possible:
continue to do like you do now.That is, look into $HOME.gitconfig. Thanks in advance ! |
Using the XDG directory, the git-config supported path is Git began fully implementing support for config files in This is a new feature request. So I'll open a new issue. |
thank you @guyhughes ☺ |
thank you for that well documented comment, @m040601, but as @guyhughes it's better fitted as a new issue. |
I keep
~/.gitconfig
stored in source control. I can't do so with git-repo storing the github auth token in there...Thanks.
The text was updated successfully, but these errors were encountered: