This project is read-only.

Saving permissions in keychain in os x

Oct 9, 2013 at 8: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?
Nov 8, 2013 at 4:20 PM

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.

Jun 26, 2014 at 12:53 AM
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.!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...