As a newbie git user, when I try to commit my work with
git commit -a -v
and I enter a commit message in my editor, I close the file, and get this error:
Aborting commit due to empty commit message.
I have read nearly all the topics addressing to this issue, changed editors, basically tried everything but nothing helps. What should I do?
One thing I noticed, while trying the whole process with notepad++, the file couldn’t be saved.
A possible workaround is this:
git commit -am "SomeComment"
But by doing so I feel I am kind of nullifying the purpose of using git. I want to properly document my changes.
Related Posts:
- How do I check out a remote Git branch?
- What is git tag, How to create tags & How to checkout git remote tag(s)
- What does ‘–set-upstream’ do?
- What does ‘–set-upstream’ do?
- What is the best (and safest) way to merge a Git branch into master?
- Squash my last X commits together using Git
- Git merge hotfix branch into feature branch
- Git submodule update
- How to apply a patch generated with git format-patch?
- What does ‘git merge –abort is equivalent to git reset –merge when MERGE_HEAD is present.’ of Git merge man page mean?
- Abort a Git Merge
- How to delete a remote tag?
- Updates were rejected because the tip of your current branch is behind its remote counterpart
- How do I clone a specific Git branch? [duplicate]
- What does “Changes not staged for commit” mean
- Git : fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists
- git: fatal: Could not read from remote repository
- How do I update Homebrew?
- Git error when trying to push — pre-receive hook declined
- Remove files from Git commit
- How to solve SSL certificate: self signed certificate when cloning repo from github?
- Gitignore not working
- Could not open a connection to your authentication agent
- How to get just one file from another branch?
- How do I revert a Git repository to a previous commit?
- git checkout a single file from another branch and put in different folder
- Update Git branches from master
- How to revert multiple git commits?
- Stash only one file out of multiple files that have changed with Git?
- Create a branch in Git from another branch
- How do I fix a Git detached head?
- What is HEAD in Git?
- Why does git say “Pull is not possible because you have unmerged files”?
- How can I git stash a specific file?
- Move the most recent commit(s) to a new branch with Git
- What does “Git push non-fast-forward updates were rejected” mean?
- How do I diff the same file between two different commits on the same branch?
- How to name and retrieve a stash by name in git?
- You have not concluded your merge (MERGE_HEAD exists)
- How to get the current branch name in Git?
- Stash just a single file
- Git – Ignore node_modules folder everywhere
- Git error on commit after merge – fatal: cannot do a partial commit during a merge
- Is there a “theirs” version of “git merge -s ours”?
- Meaning of the GitHub message: push declined due to email privacy restrictions
- Is there a command to undo git init?
- Download a single folder or directory from a GitHub repo
- fatal: Not a valid object name: ‘master’
- Git and nasty “error: cannot lock existing info/refs fatal”
- Is there a “git touch” so I can push the same file with a new timestamp?
- Branch from a previous commit using Git
- How do I delete a local repository in git?
- Throw away local commits in Git
- Hard reset of a single file
- Hard reset of a single file
- How to remove remote origin from a Git repository
- Not a valid object name: ‘master’
- .gitignore and “The following untracked working tree files would be overwritten by checkout”
- git add remote branch
- How do I copy a version of a single file from one Git branch to another?
- Undo a git stash
- Undo git stash pop that results in merge conflict
- Git: cannot checkout branch – error: pathspec ‘…’ did not match any file(s) known to git
- Set up git to pull and push all branches
- Invalid VCS root mapping – 3 errors on my project
- Unity Collaborate vs GitHub
- How do I clone a single branch in Git?
- how to reset develop branch to master
- “fatal: HttpRequestException encountered.” Error with GitHub/Bitbucket Repositories due to dropping TLS-1.0 support
- SourceTree keeps asking for Github password
- Git’s local repository and remote repository — confusing concepts
- How to change the license for a project at Github?
- How do i git push specific branch?
- Git add all files modified, deleted, and untracked?
- How to switch back to ‘master’ with git?
- fatal: could not read Username for ‘https://github.com’: No such file or directory
- git push origin master does not work
- How can I see which Git branches are tracking which remote / upstream branch?
- Git clone verbose output?
- TortoiseGit-git did not exit cleanly (exit code 1)
- How to answer the git prompt in npm init for a local repo
- How to `git pull` while ignoring local changes?
- Uninitialize git repository
- How to create a local branch from an existing remote branch?
- How do I clone a subdirectory only of a Git repository?
- How to configure git bash command line completion?
- What is the .git folder?
- How to stop tracking and ignore changes to a file in Git?
- Updating and committing only a file’s permissions using git version control
- Create empty branch on GitHub
- Git – fatal: Unable to create ‘/path/my_project/.git/index.lock’: File exists
- WordPress and Git – What folders should I track?
- What is the usual process of saving changes made at the CMS level into source control?
- Collaboratively develop a WordPress site
- Pull latest stable release via git [closed]
- Why do the Roots theme CSS files not load (404)?
- WordPress Core files not being ignored by Git
- Painless way to track remote Git repo for WordPress updates
- WordPress on git – need help with configuration
- Full site editor, hard-coded IDs in query blocks, and staging/dev servers