Git push username show as `default`
I can push successfully but the username show as
default
, username is correct in git config --list
16 Replies
<#1244557782603137034>
Category
Help needed
Product
Coder OSS (v2)
Platform
Linux
Logs
Please post any relevant logs/error messages.
Are you using
https://registry.coder.com/modules/git-config
Git Config - Coder Registry
Stores Git configuration from Coder credentials
No- what is this?
How are you configuring git user credentials?
Could you share your template?
@Atif
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 namei am manually setting ~/.gitconfig, things look correct in there
im trying any tho
nope, that's not working too
You should do one thing
Solution
Either set .gitconfig or these env variables
If you have a .gitconfig
Just remove these env variables
do i need to rebuild the workspace after deleting .gitconfig?
If you prefer .gitconfig I advise you to remove environment variables
And yes rebuild the template and update your workspaces
Thanks, its solved now :)
How did you solve it? Did you delete the
.gitconfig
?yeah