From: "Carlo Marcelo Arenas Belón" <carenas@gmail.com>
To: David Moseler <davidmoseler@protonmail.com>
Cc: "git@vger.kernel.org" <git@vger.kernel.org>
Subject: Re: git-credential-store does not work with a file
Date: Tue, 12 May 2020 04:22:01 -0700 [thread overview]
Message-ID: <20200512112201.GA10049@Carlos-MBP> (raw)
In-Reply-To: <uBc-Htk5XJFPF28aiZsQUIowfd66Ay2NiCyVbxkWpD77ugn3k4LBLse-jm0Jf4HpAKMWt4chuRAbxskeczZpj_pEnUaX_XOrmhfYksCeVLw=@protonmail.com>
On Tue, May 12, 2020 at 12:40:10AM +0000, David Moseler wrote:
> Hi,
>
> I'm using git version 2.17.1. Providing a file to git-credential-store, such as in
>
> git config credential.helper store --file='./git-credentials'
your quoting is off, so you are passing to config only the value 'store' while
the rest is ignored.
what you really meant to use is probably :
git config credential.helper "store --file=$PWD/git-credentials"
note that using a relative path might not be what you really want, as the
context for when that is run will not be what you expected most likely (ex:
the root of your repository)
> is not working. When using this command, git writes to ~/.git-credentials in the home folder anyway.
note that credential.helper is a multi value setting, so you probably also want
to clear the list first, if your intention was to only use that file and not the
one in ~/.git-credentials.
see `git help gitcredentials` for details
Carlo
next prev parent reply other threads:[~2020-05-12 11:22 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <Wc7NKqbl9k45DWha23OG_TvVA4Ftq3sOCiHScVXhmAbCPOaz8pkEqQrPXw_JBC8G7g9CrIKxwfE8pv8Nr9Dcw5J0zA7fNCAi9Mq1OnxhpMg=@protonmail.com>
[not found] ` <56HlWgfQEg1t99VKZaFZqhdcjAs279HXXP1gQ9YzZGOGcR9jEzSVYgl3flvbTiqSet2HB0gc6jotcDmYbtDipE7k0-QbdrzjgxiKZBnIK_4=@protonmail.com>
2020-05-12 0:40 ` git-credential-store does not work with a file David Moseler
2020-05-12 11:22 ` Carlo Marcelo Arenas Belón [this message]
2020-05-13 21:53 ` Junio C Hamano
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: http://vger.kernel.org/majordomo-info.html
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20200512112201.GA10049@Carlos-MBP \
--to=carenas@gmail.com \
--cc=davidmoseler@protonmail.com \
--cc=git@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://80x24.org/mirrors/git.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).