Skip to content

Create Manage bots system #1302

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed

Conversation

Lds911
Copy link

@Lds911 Lds911 commented Jun 23, 2023

run "git credential-foo"

[credential]
helper = foo

same as above, but pass an argument to the helper [credential]

helper = "foo --bar=baz"

the arguments are parsed by the shell, so use shell # quoting if necessary

[credential]
helper = "foo --bar='whitespace arg'"

you can also use an absolute path, which will not use the git wrapper [credential]

helper = "/path/to/my/helper --with-arguments"

or you can specify your own shell snippet

[credential "https://example.com"]
username = your_user
helper = "!f() { test "$1" = get && echo "password=$(cat $HOME/.secret

# run "git credential-foo"
[credential]
	helper = foo

# same as above, but pass an argument to the helper
[credential]
	helper = "foo --bar=baz"

# the arguments are parsed by the shell, so use shell
# quoting if necessary
[credential]
	helper = "foo --bar='whitespace arg'"

# you can also use an absolute path, which will not use the git wrapper
[credential]
	helper = "/path/to/my/helper --with-arguments"

# or you can specify your own shell snippet
[credential "https://example.com"]
	username = your_user
	helper = "!f() { test \"$1\" = get && echo \"password=$(cat $HOME/.secret
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants