committing R Script to the GitHub repository returns "Aborting commit due to empty commit message."

Hallo everyone,
I'm new here and I have little experience with R but I try my best. I haven't found a solution to my problem and I hope you can help me. I started using RStudio some time ago and now I decided to set up a GitHub repository to version control.

I performed GitHub (with SSH key) the setup according to the instructions
http://r-pkgs.had.co.nz/git.html

I create a local Git repository and I started code editing but I can’t commit my R Script to the repository. Every time when I am trying commit I get a response “Aborting commit due to empty commit message.”

When I am trying with file.exists("~/.ssh/id_rsa.pub")
it always returns FALSE

Windows 10
R Version 3.6.3
RStudio Version 1.2.5042
Git Version 2.26.2

Thank you in advance for any help

Did you write a git commit message?

Not yet, I thought that maybe someone from RStudio forum users knows the solution and I didn't want to duplicate the topic on Git immediately after starting this topic.

You need to write a commit message when you commit changes, regardless of how you make a commit (e.g. from the command line, in a git GUI, via the RStudio IDE, etc.). It must have a message. See this quick guide to git basics:
https://rogerdudler.github.io/git-guide/

Now I understand what you meant, sorry.
Yes I put commit message about changes in the code.

It will sound weird but when I installed all the programs one more time everything start working correct.
Thank you so much for trying to help me.

1 Like

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.