<h1><a href="https://git-scm.com/book/en/v2/Git-Tools-Credential-Storage" rel="nofollow noreferrer">Git Credential Helper</a></h1>
<p>For me the reasons was because in my <code>~/.git/config</code> I had</p>
<pre><code>[credential &quot;https://gitlab.acme.net&quot;]
    helper = 
    helper = !/usr/bin/glab auth git-credential
</code></pre>
<p>But I had installed <code>glab</code> to <code>/usr/local/bin/glab</code> (per Debian standards). Updating this path fixed it. I just removed the explicit qualification,</p>
<pre><code>[credential &quot;https://gitlab.acme.net&quot;]
    helper = 
    helper = !glab auth git-credential
</code></pre>

CC BY-SA 4.0
2024-04-29T19:43:14.077Z
2024-04-29T19:43:14.077Z
Evan Carroll
<p>Let's say I have a script with <code>glab repo create</code>,</p>
<pre><code>mkdir foo;
cd foo;
git init;
glab repo create;
</code></pre>
<p>When I get to <code>glab repo create</code> it asks for my username,</p>
<pre><code>Initialized empty Git repository in /home/ecarroll/test-artifacts/foo/.git/
✓ Created repository Evan Carroll / foo on GitLab: https://gitlab.acme.net/evancarroll/foo
Username for 'https://gitlab.acme.net':
</code></pre>
<p>Why is this?</p>

<glab>
When I run glab commands, it always asks me for my username?
Evan Carroll
# When I run glab commands, it always asks me for my username?

(Asked by: username_0 on 2024-04-29)

Let's say I have a script with glab repo create,
mkdir foo;
cd foo;
git init;
glab repo create;

When I get to glab repo create it asks for my username,
Initialized empty Git repository in /home/ecarroll/test-artifacts/foo/.git/
✓ Created repository username_0 / foo on GitLab: https://gitlab.acme.net/evancarroll/foo
Username for 'https://gitlab.acme.net':

Why is this?

**Tags:** glab


---

## 1 answers

### Answer by username_0 on 2024-04-29. Score: 0 | Accepted answer

Git Credential Helper
For me the reasons was because in my ~/.git/config I had
[credential "https://gitlab.acme.net"]
    helper = 
    helper = !/usr/bin/glab auth git-credential

But I had installed glab to /usr/local/bin/glab (per Debian standards). Updating this path fixed it. I just removed the explicit qualification,
[credential "https://gitlab.acme.net"]
    helper = 
    helper = !glab auth git-credential


---

