Upload new package to github

The name of the folder on your local machine does not have to match your github repository. You can indeed call your online github repository Rubi.jl. There are two ways to develop a package on github:

  1. Create an empty repository on github first. You may call this Rubi.jl. Clone this empty repository in your local workstation and run PkgTemplates (or copy paste that structure it already created). Then use git push to push everything to the remote repo.

  2. Create the package first using PkgTemplates like you did and then create your repository on github. However, to make an existing folder into a git-tracked folder, there are a few steps you have to take, which are all a simple Google search away. The general gist is that you first initialize the folder as a git repository (i.e. git init) and then “connect” this local folder to your online github repository by running adding the fetch/pull remote links.

I generally prefer the first way as it tends to be quite easier. If you are a git beginner, know that the learning slope is quite steep.

5 Likes