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

Did you find this page helpful?