Error in committing rubyonrails code in Github

Viewed 41

I tried committing my Ruby on Rails code from Github desktop, and I got the below
error, please help me how to resolve this error and commit my code?

.git/hooks/commit-msg:167:in `validate': undefined method `keys' for nil:NilClass (NoMethodError)
    from .git/hooks/commit-msg:211:in `<main>'
1 Answers

Since you need to not run that hook (pending resolution of the error message), know that GitHub Desktop itself does not directly support a git commit -n/--no-verify:

So you have to option a command-line:

  • press the commit button, and wait for it to show the error popup.
  • On the top window, select "Repository>Open in command prompt"
  • type git commit -n
Related