You're enrolled in our new beta rewards program. Join our group to get the inside scoop and share your feedback.
Join groupJoin the community to find out what other Atlassian users are discussing, debating and creating.
Trying to configure global user name and email but keep getting the same error message:
What am I missing?
I'm on a Macbook Air (Mojave) using Terminal.
Check the contents of the file:
cat ~/.gitconfig
The format should look something like:
[user]
name = Firstname Lastname
email = name@example.com
[core]
etc....
As @Jobin Kuruvilla _Adaptavist_ suggested, it might be malformed and need manual updating.
There were some lines that I had to delete in the gitconfig file (i.e. two empty, two with an outdated username and email).
Thank you!
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
It is possible that the existing git config was tampered with. Check this answer:
https://stackoverflow.com/questions/45174228/git-error-key-does-not-contain-a-section
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
[user] + [core]
# inner local project
$ vim .git/config
[core]
repositoryformatversion = 0
filemode = true
bare = false
logallrefupdates = true
[user]
name = xgqfrms
email = xgqfrms@ufo.com
$ cat .git/config
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
$ vim ~/.gitconfig # email = xgqfrms@ufo.com # name = xgqfrms [user] email = xxx@xxx.com name = xgqfrms $ cat ~/.gitconfig
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi everyone, We are looking to learn more about development teams’ workflows and pain points, especially around DevOps, integrations, administration, scale, security, and the related challeng...
Connect with like-minded Atlassian users at free events near you!
Find an eventConnect with like-minded Atlassian users at free events near you!
Unfortunately there are no Community Events near you at the moment.
Host an eventYou're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.