DEV Community

Discussion on: Custom git credential helper

Collapse
 
richie765 profile image
Richard

The most important (and hard to find) information is missing from this post, making it not very useful. Here is a hint should help to figure out the missing parts. It took me quite a while to figure it out so I hope it helps someone.

# Store password
echo "username=john
protocol=https
host=remote-git.com
password=hello" | /usr/lib/git-core/git-credential-store store

# Get password
echo "username=john
protocol=https
host=remote-git.com" | /usr/lib/git-core/git-credential-store get