Saving permissions in keychain in os x

Oct 9, 2013 at 7:42 PM
Hello, every time I do a git tf pull or git tf checkin on my mac I am asked again for my username and password. Is it possible to save this in a keychain so that I don't have to type it every time?
Developer
Nov 8, 2013 at 3:20 PM
Hi,

Unfortunately, Git-TF currently is not able to use the KeyChain secure storage on Mac.

You may add user name and password to the Git configuration file. In the .git directory of your repository in the config file find the [git-tf "server"] section and add two new parameters username and password. E.g.
[git-tf "server"]
        collection = http://...
        serverpath = $/...
        username = your-user-name
        password = your-password
Note that, if you add only the username parameter, you still will be prompt for a password.

Alex
Jun 25, 2014 at 11:53 PM
Thanks for this.

Some scripts that read git's config work by invoking a command line tool for OS X Keychain access, that I kind of expected to work here. Cf. https://www.google.com/search?q=password+%3D+!security+find-generic-password

For example:
[git-tf "server"]
    collection = http://redacted
    serverpath = $/redacted
    username = myuser
    password = !security find-generic-password -ws mytfskeychainname -a myaccount
I tried this, and verified that security find-generic-password -ws ericsson-tfs -a myuser returned my password from the command line. But git-tf only sees my username, and prompts me for a password.

It'd be nice if this worked in git-tf...

Cheers,

Isao