git netrc (1)

NAME

git-netrc - generate a temporary FIFO .netrc using git credentials

SYNOPSIS

git netrc <url> [<n>]

DESCRIPTION

This command creates a temporary FIFO at ~/.netrc and fills it with the git credentials associated to the given url. The content will be available for n (which defaults to 1) reads. After n reads, the FIFO is removed.

git netrc forks and runs in the background as soon as the credentials are obtained (which might wait for the user to enter them, for the keyring to be unlocked, or some other condition).

This command is best used with an adequate credential-helper set. See gitcredentials(7) for more information on how to set a credential helper.

SEE ALSO

gitcredentials(7), git-password(1)