# Help setting up a package

**URL:** <https://discourse.julialang.org/t/help-setting-up-a-package/90884>\
**Category:** New to Julia\
**Created:** [November 27, 2022, 4:41am UTC](https://discourse.julialang.org/t/help-setting-up-a-package/90884 "2022-11-27T04:41:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Lilith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lilith/32/27492_2.png) [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Post date:** [November 27, 2022, 4:41am UTC](https://discourse.julialang.org/t/help-setting-up-a-package/90884/1 "2022-11-27T04:41:58Z")

</div>

I’m running into difficulties using PkgTemplates to setup a package. I made a tiny package [here](https://github.com/LilithHafner/Example.jl)

But when I try to add it at the repl, it fails:

```julia
(@v1.8) pkg> add https://github.com/LilithHafner/Example.jl
ERROR: invalid git HEAD (reference 'refs/heads/main' not found)

```

What does this error mean?

---

<div class="post-metadata">

**Author:** ![cmichelenstrofer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cmichelenstrofer/32/44392_2.png) [@cmichelenstrofer](https://discourse.julialang.org/u/cmichelenstrofer)\
**Post date:** [November 27, 2022, 6:21am UTC](https://discourse.julialang.org/t/help-setting-up-a-package/90884/2 "2022-11-27T06:21:32Z")

</div>

I was able to add your package, no problem. Which means you’ve done it right! 🙂 If it’s still not working maybe you’ve messed up something locally?

---

<div class="post-metadata">

**Author:** ![Lilith](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lilith/32/27492_2.png) [@Lilith](https://discourse.julialang.org/u/Lilith)\
**Post date:** [November 27, 2022, 6:42am UTC](https://discourse.julialang.org/t/help-setting-up-a-package/90884/3 "2022-11-27T06:42:25Z")

</div>

Very strange. I deleted most of ~/.julia and tried again and it worked. Thanks.
