anvilabs / dotfiles

[DEPRECATED] @anvilabs' dotfiles
MIT License
9 stars 1 forks source link

.gitmessage is absent -> causes problem with `git commit` #3

Closed maxat70baev closed 7 years ago

maxat70baev commented 7 years ago

Right after installing dotfiles running git commit command in terminal will end up with error as shown below:

git commit
fatal: could not read '/Users/username/.gitmessage': No such file or directory

Reason: .gitconfig file contains the following lines:

[commit]
  template = ~/.gitmessage

However .gitmessage file itself is not present in symlinks and therefore is not installed with the dotfiles. There are two options to solve this issue, either of them should work:

  1. To create the .gitmessage in symlinks and fill it with content like here.
  2. Delete template = ~/.gitmessage from .gitconfig.
maxat70baev commented 7 years ago

I posted a PR #4 to solve this issue.