Skip to content

A better use of "security" command line on OS X to find the github password #126

@cliffrowley

Description

@cliffrowley

I wasn't sure whether to submit this is a ticket or not, so apologies if that was incorrect. It was just a minor note to point out that using the following:

security find-internet-password -a <github username> -s github.com -w | tr -d '\n'

Instead of the documented:

security find-generic-password -gs github.password -w | tr -d '\n'

Is much more useful as it stays in sync if you happen to need to change your github password. Obviously find-generic-password is better for people who choose not to save passwords in keychain. For the rest of us, find-internet-password is better.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions