# Using PkgTemplates.jl to create new github repository

**URL:** https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651
**Category:** New to Julia
**Tags:** question, package
**Created:** [March 7, 2021, 3:23am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651 "2021-03-07T03:23:02Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![SpinolaHours](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)
#### Post date: [March 7, 2021, 3:23am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/1 "2021-03-07T03:23:02Z")

</div>

Hi,

I’m fairly new to Julia and I’m trying to make use of the PkgTemplates.jl package.

When I generate a new package I expect a new repository to be created on github however this doesn’t seem to be the case.

Otherwise the package is generated as expected (locally).

I thought I may be missing some git config? Or creating a new repository not default behaviour?

Any help would be appreciated. Thanks.

---

<div class="post-metadata">

### Author: ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)
#### Post date: [March 7, 2021, 3:37am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/2 "2021-03-07T03:37:54Z")

</div>

Generating the package locally is the expected behavior, you could use GitHub Desktop for publishing the package. Note no third-party applications can create a new repo under your account without asking you for some tokens or password.

---

<div class="post-metadata">

### Author: ![SpinolaHours](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)
#### Post date: [March 7, 2021, 4:06am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/3 "2021-03-07T04:06:45Z")

</div>

Ah I see. I had obviously misunderstood what the package did.

Unfortunately I don’t think there is a github desktop for linux. Seems like GitKraken might be a viable alternative?

Thanks for your help.

---

<div class="post-metadata">

### Author: ![Gnimuc](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gnimuc/32/2194_2.png) [@Gnimuc](https://discourse.julialang.org/u/Gnimuc)
#### Post date: [March 7, 2021, 4:09am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/4 "2021-03-07T04:09:08Z")

</div>

Yep, GitKraken is a very powerful git IDE.

---

<div class="post-metadata">

### Author: ![andrewdinhobl](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/andrewdinhobl/32/23614_2.png) [@andrewdinhobl](https://discourse.julialang.org/u/andrewdinhobl)
#### Post date: [March 7, 2021, 4:18am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/5 "2021-03-07T04:18:13Z")

</div>

I think there is also a way to login to github in VSCode and allow it to publish new repos.

---

<div class="post-metadata">

### Author: ![Shuhua](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/shuhua/32/27618_2.png) [@Shuhua](https://discourse.julialang.org/u/Shuhua)
#### Post date: [March 7, 2021, 6:51am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/6 "2021-03-07T06:51:19Z")

</div>

Why don’t you just create the repository on the GitHub website? 😄

For instance, after you generate a package with `PkgTemplates` called `MyPkg`. You can then create an **empty** repository called `MyPkg.jl` on GitHub website. Then, simply set the upstream in your local package and all is done.

---

<div class="post-metadata">

### Author: ![Skoffer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/skoffer/32/378_2.png) [@Skoffer](https://discourse.julialang.org/u/Skoffer)
#### Post date: [March 7, 2021, 6:51am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/7 "2021-03-07T06:51:20Z")

</div>

That would be a nice feature, by the way. At the very least it shouldn’t be complicated technically, I am not sure though, would the author of the package agree to add it. Worth an issue, anyway.

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [March 7, 2021, 7:27am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/8 "2021-03-07T07:27:22Z")

</div>

I have just made a video on a possible Julia project setup (including github repo) using @Tamas_Papp’s PkgSkeleton.jl (although I use a fork for interactivity) : [Video : Julia setup for beginner](https://discourse.julialang.org/t/video-julia-setup-for-beginner/56559)

---

<div class="post-metadata">

### Author: ![SpinolaHours](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)
#### Post date: [March 7, 2021, 7:41am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/9 "2021-03-07T07:41:17Z")

</div>

Agree. Just didn’t realize that the PkgTemplate wouldn’t do that for me. I’m also new to github having previously only really used notebooks.

---

<div class="post-metadata">

### Author: ![SpinolaHours](https://avatars.discourse-cdn.com/v4/letter/s/a3d4f5/32.png) [@SpinolaHours](https://discourse.julialang.org/u/SpinolaHours)
#### Post date: [March 7, 2021, 7:54am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/10 "2021-03-07T07:54:37Z")

</div>

Just watched this. It’s very clear, thank you. I’ll make sure to use revise from now on!

---

<div class="post-metadata">

### Author: ![LaurentPlagne](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/laurentplagne/32/10103_2.png) [@LaurentPlagne](https://discourse.julialang.org/u/LaurentPlagne)
#### Post date: [March 7, 2021, 8:05am UTC](https://discourse.julialang.org/t/using-pkgtemplates-jl-to-create-new-github-repository/56651/11 "2021-03-07T08:05:03Z")

</div>

Thanks !
