Skip to content

Beginner question: setting up Git with Terminal on Mac #21880

Discussion options

You must be logged in to vote

Then type the commit command like this:

git commit -am “here is the git commit message which bypasses git opening up an editor”

Sadly this message board doesn’t support code formating in the posts. anything between backticks `` is the command in previous posts of mine. Whats between the backticks is what the command is. don’t include them.

To change the git configuration for the editor the command is…

git config --global core.editor TheEditorYouWantHere

Just In case you changed it while inside the repo which takes presidence over global git config, run this while inside the repo directory:

git config --local core.editor TheEditorYouWantHere

personally i’d just use nano/terminal emacs in t…

Replies: 7 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants