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
Codercord5mo ago
<#1244557782603137034>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Atif
Atif5mo ago
Git Config - Coder Registry
Stores Git configuration from Coder credentials
深雪
深雪5mo ago
No- what is this?
Atif
Atif5mo ago
How are you configuring git user credentials? Could you share your template?
深雪
深雪5mo ago
深雪
深雪5mo ago
@Atif
Atif
Atif5mo 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
深雪
深雪5mo ago
i am manually setting ~/.gitconfig, things look correct in there im trying any tho nope, that's not working too
Atif
Atif5mo ago
You should do one thing
Solution
Atif
Atif5mo ago
Either set .gitconfig or these env variables
Atif
Atif5mo ago
If you have a .gitconfig Just remove these env variables
深雪
深雪5mo ago
do i need to rebuild the workspace after deleting .gitconfig?
Atif
Atif5mo ago
If you prefer .gitconfig I advise you to remove environment variables And yes rebuild the template and update your workspaces
深雪
深雪5mo ago
Thanks, its solved now :)
Atif
Atif5mo ago
How did you solve it? Did you delete the .gitconfig?
深雪
深雪5mo ago
yeah
Want results from more Discord servers?
Add your server