0

I am getting an error when attempting to clone a git repo using attlassian source tree stating

error: templates not found /usr/local/git/share/git-core/templates

A quick google search shows a few solutions to this issue, but none have worked for me.

When I do attempt to clone a repo, the installation will never complete. Any ideas how I can fix this?

EDIT:

I tried all solutions stated in this post

Community
  • 1
  • 1
Andy
  • 750
  • 7
  • 23
  • Can you state *what* the solutions were and which ones you tried? – Nils Werner Jun 01 '16 at 13:50
  • I edited my question. When attempting to create the templates folder, I was told I do not have permission. @NilsWerner – Andy Jun 01 '16 at 13:54
  • Have you tried `sudo`? – Nils Werner Jun 01 '16 at 14:13
  • yes, and then I get the error /usr/local/git/share/git-core: No such file or directory @NilsWerner – Andy Jun 01 '16 at 14:19
  • Do all the directories leading up to `/usr/local/git/share/git-core` exist? – Nils Werner Jun 01 '16 at 14:21
  • /git/ does not exist..... No idea how this happened@NilsWerner – Andy Jun 01 '16 at 14:23
  • 1
    Try reinstalling it using homebrew `brew install git` (the path suggests Git is from homebrew). If you're not using homebrew, see if you can set Source Tree to use a different `git` binary. – Nils Werner Jun 01 '16 at 14:29
  • Possible duplicate of: [warning: templates not found /usr/local/git/share/git-core/templates](https://stackoverflow.com/questions/34877649/warning-templates-not-found-usr-local-git-share-git-core-templates) – pkamb Aug 27 '20 at 05:03

0 Answers0