question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow process-specific Git config with "-c" arguments.

See original GitHub issue

See microsoft/Git-Credential-Manager-Core#190 for some context.

To solve the problem, we could allow users to specify config the way they could with Git, using scalar [-c config=value] <verb> and having those arguments pass down into all Git commands. The distance between those two steps is a bit tricky, but perhaps there is a way to do it simply.

The other option would be to do one-off options like scalar clone <url> --access-token "***" for this specific credential issue.

At minimum, the root problem that needs to be solved is: allow a user to specify custom credentials during scalar clone.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:9 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
derrickstoleecommented, Oct 20, 2020

Is there a compelling reason to use a -c-like facility over a credential provider, for getting credentials into Scalar? I’m happy to return to the store credential provider,

You should use store if that works for you.

though perhaps -c would be useful in other scenarios I haven’t thought of yet.

This is not the first time this idea has come up. It’s just actually non-trivial (due to how our code is organized AND a bug in the command-line parser library we use). That’s why this issue will not be fast-tracked into the release this week.

0reactions
github-actions[bot]commented, Jan 20, 2021

Labeling this issue as stale. There has been no activity for 30 days. Remove stale label or comment or this issue will be closed in 7 days.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Git - git-config Documentation
git -config - Get and set repository or global options ... provide additional configuration parameters when running any git command by using the...
Read more >
git config | Atlassian Git Tutorial
The git config command can accept arguments to specify which configuration level to operate on. The following configuration levels are available: --local.
Read more >
8.1 Customizing Git - Git Configuration
First, a quick review: Git uses a series of configuration files to determine non-default behavior that you may want. The first place Git...
Read more >
Git - git-config Documentation
gitconfig is used to store a per-user configuration as fallback values for the .git/config file. The file /etc/gitconfig can be used to store...
Read more >
git config – How to Configure Git Settings to Improve Your ...
git config is a powerful command in Git. You can use the Git configuration file to customize how Git works.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found