2/20/2023 0 Comments Updated git for mac 2016You don’t have to specify more than open for git to work with the right editor. TextEdit is open‘s natural environmental editor for text. I turned to open instead: git config -global core.editor "open -W -n" The amended commit does complete on quit: % git commit -amend Testing TextEdit!ġ file changed, 3 insertions(+), 1 deletion(-) The commit completes and works when I quit TextEdit but I don’t like to quit the app each time I update a commit, especially if I have other files open. ![]() Hint: Waiting for your editor to close the file. There’s one problem though, which is that git doesn’t pick up on the fact that a file has been edited and closed when the application remains active: % git commit -amend I picked this rather than some of the other approaches because it’s straightforward in launching the app. ![]() It’s been fine but not everyone loves emacs or likes the debris it leaves in its wake. So I thought I’d try out TextEdit instead.Īfter a little testing of approaches, I first tried out this: git config -global core.editor /Applications/TextEdit.app/Contents/MacOS/TextEdit For a little while, I’ve been using emacs as my git editor because I strongly feel that vi is something that should happen to other people.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |