# Upload new package to github

**URL:** <https://discourse.julialang.org/t/upload-new-package-to-github/56783>\
**Category:** General Usage\
**Tags:** package, github\
**Created:** [March 9, 2021, 4:02am UTC](https://discourse.julialang.org/t/upload-new-package-to-github/56783 "2021-03-09T04:02:46Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)\
**Post date:** [June 8, 2021, 12:08pm UTC](https://discourse.julialang.org/t/upload-new-package-to-github/56783/14 "2021-06-08T12:08:25Z")

</div>

@GunnarFarneback , thanks. I see. I think I was always hitting a mixture of two things: 1) Getting confused on what is the “package name” and what is the “repository name”, and not knowing what was the “repository name” that PkgTemplates was creating (didn’t know about the `git remote get-url origin` command).

* * *

### Conclusion:

The simplest path:

1. Create the empty github repo, i. e. `http://github.com/lmiq/MyPackage.jl` (create it with `.jl` at the end).

2. Use package templates with:

```julia-auto
using PkgTemplates
tpl = Template(user="lmiq")
tpl("MyPackage")

```

1. Navigate to `~/.julia/dev/MyPackage`, and do:

```julia-auto
git push --set-upstream origin master

```

* * *

* * *

> [@Skoffer](#):
>
> Why would you want to add a new `origin` if existing is perfectly fine?

Thanks for the tips. I don’t really want anything… I just don’t understand what is going on.

---

_[View the full topic](https://discourse.julialang.org/t/upload-new-package-to-github/56783)._
