When you set an editor in the configuration of Git, make sure to pass the parameter “-w” to force Git to wait your commit message that you would type on your custom editor.
git config --global core.editor "[your editor] -w"
More Related Contents:
- How to sparsely checkout only one single file from a git repository?
- Can Git hook scripts be managed along with the repository?
- Having a hard time understanding git-fetch
- How can I view a git log of just one user’s commits?
- Is it possible to create a remote repo on GitHub from the CLI without opening browser?
- Can I make git recognize a UTF-16 file as text?
- What’s the difference between Git Revert, Checkout and Reset?
- Making ‘git log’ ignore changes for certain paths
- Configuring diff tool with .gitconfig
- Windows git “warning: LF will be replaced by CRLF”, is that warning tail backward?
- How to undo “git commit –amend” done instead of “git commit”
- Undo git update-index –assume-unchanged
- Git excludesfile for a branch
- Git push doesnt do anything over HTTPS
- Git – Checkout a remote tag when two remotes have the same tag name
- How do you fork your own repository on GitHub?
- In git, is there a way to show untracked stashed files without applying the stash?
- How to move a git repository into another directory and make that directory a git repository?
- Error when push commits with Github: fatal: could not read Username
- Is there a git-merge –dry-run option?
- Fatal error “unsafe repository (‘/home/repon’ is owned by someone else)”
- How to attribute a single commit to multiple developers?
- What’s the use of the staging area in Git?
- Is “git push –mirror” sufficient for backing up my repository?
- Git pull fails with bad pack header error
- Error in git push heroku master through ssh behind proxy
- How to exit git log or git diff [duplicate]
- Merge (with squash) all changes from another branch as a single commit
- fatal: Not a git repository (or any of the parent directories): .git [duplicate]
- Git push error: RPC failed; result=56, HTTP code = 200 fatal: The remote end hung up unexpectedly fatal