Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6040491
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T06:31:17+00:00 2026-05-23T06:31:17+00:00

I am trying to set git on my Mac Os Snow Leopard 10.6.7 but

  • 0

I am trying to set git on my Mac Os Snow Leopard 10.6.7 but I made some errors on doing that…

At this time I have the following warning:

$ git config --global core.editor
EDITOR=/usr/bin/vim
error: More than one value for the key core.editor: mate
$ git config --global core.editor open
warning: core.editor has multiple values

How can I solve that? And, mostly, how can I set the core.editor to TextEdit and make it works?

P.S.: I already read this question.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T06:31:17+00:00Added an answer on May 23, 2026 at 6:31 am

    The easiest way is to change the environment variable EDITOR to point to mate. In your .bash_profile add the following:

    export EDITOR="/usr/local/bin/mate -w"
    

    and re-start your terminal session, or source the .bash_profile.

    As for your error message:

    error: More than one value for the key core.editor: mate
    

    it means you’ve added multiple core.editor lines in your .gitconfig.

    Use mate ~/.gitconfig to modify your .gitconfig and remove the extra lines, or if you don’t mind unsetting all of them use:

    git config --global --unset-all core.editor
    

    Then use

    git config --global --add core.editor "/usr/local/bin/mate -w"
    

    then you can leave $EDITOR set to what it was previously set to.


    If mate is not located in /usr/local/bin find where it is first by using type mate (in bash, not sure about other shells)


    Since you want to use open as your $GIT_EDITOR you will need the following:

    -W  Causes open to wait until the applications it opens (or that were already open) have exited.  Use with the -n flag to allow open to function as an appropriate app for the $EDITOR environment variable.
    
    -n  Open a new instance of the application(s) even if one is already running.
    

    This will work for that:

     git config --global --unset-all core.editor
     git config --global --add core.editor "open -W -n"
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to set up hudson with git according to this article , but
I'm trying to set pu my git, but I have a little problem with
I am trying to setup git on my Mac through this link ( http://help.github.com/mac-set-up-git/
I'm trying to use git behind a proxy and i have set up the
This is my first time trying to set up capistrano to deploy a rails
Trying to set-up a git server on my local dev machine and have been
I'm trying to set up Git for staging my website so that I can
I'm trying to set up a git post-receive hook such that when a commit
I'm trying to use Git for the first time. I did everything that github
I am trying to set up git as a first time user and proceeded

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.