-
Notifications
You must be signed in to change notification settings - Fork 166
Creating a New Git Remote
(wip)
In case you need to back up your repository, put it on another computer, or show it to someone else, you're going to need it to be saved online. Every Git repository is linked to an online copy known as a remote. For example, the main HackerSM64 webpage itself is a remote. This HackerSM64 remote is what your local repository is set to use, which is something you do not want. Basically, Git thinks that you're making changes to HackerSM64 itself, and when it tries to put it online, it'll try to put the changes specific to your hack onto the base HackerSM64 repository that everyone uses. So, you're going to want to make your own GitHub page for this.
Of course, make sure that you have an account on GitHub. Once you've done that, you can create a new remote repository. Click on the +
in the upper right hand side of the screen, and click New repository
.
You'll be greeted with the "Create a New Repository" page. Simply give your repository a name, a description, and mark it as either Public or Private. If it's public, anyone will be able to see your repository and make their own version of it, so choose whichever you're most comfortable with. You can make it private for now and make it public after your hack is released, if you want it to be open source.
An important thing to mention is that you should NOT select any of the other options on this page. Do not set a template, do not add a README file, do not add a .gitignore file, and do not choose a license. When you create this repository, it should be completely empty.
If you've done everything right, you should see the following header:
Copy the URL displayed here to your clipboard. You will be using this as the link to your new remote.
Return to the Ubuntu console, and make sure you're in the base directory of your local repository (such as ~/SM64/<name of project>
). Enter the command git remote set-url origin <remote url>
, pasting in the URL you copied before in place of using a right-click.
<finish later, just realized i should actually do this in a different order>