Git push username show as `default`

I can push successfully but the username show as default, username is correct in git config --list
No description
Solution:
Either set .gitconfig or these env variables
Jump to solution
16 Replies
Codercord
Codercord6mo ago
<#1244557782603137034>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif6mo ago
Git Config - Coder Registry
Stores Git configuration from Coder credentials
深雪
深雪OP6mo ago
No- what is this?
Atif
Atif6mo ago
How are you configuring git user credentials? Could you share your template?
深雪
深雪OP6mo ago
深雪
深雪OP6mo ago
@Atif
Atif
Atif6mo ago
Try replacing GIT_AUTHOR_NAME = coalesce(data.coder_workspace.me.owner_name, data.coder_workspace.me.owner) With GIT_AUTHOR_NAME = data.coder_workspace.me.owner Or set a full name in account --> settings --> full name
深雪
深雪OP6mo ago
i am manually setting ~/.gitconfig, things look correct in there im trying any tho nope, that's not working too
Atif
Atif6mo ago
You should do one thing
Solution
Atif
Atif6mo ago
Either set .gitconfig or these env variables
Atif
Atif6mo ago
If you have a .gitconfig Just remove these env variables
深雪
深雪OP6mo ago
do i need to rebuild the workspace after deleting .gitconfig?
Atif
Atif6mo ago
If you prefer .gitconfig I advise you to remove environment variables And yes rebuild the template and update your workspaces
深雪
深雪OP6mo ago
Thanks, its solved now :)
Atif
Atif6mo ago
How did you solve it? Did you delete the .gitconfig?
深雪
深雪OP6mo ago
yeah
Want results from more Discord servers?
Add your server