8

8Brackets and remote repositories

8.2

Creating the remote repository

The first thing is to cre­ate an empty repos­i­tory in GitHub:

Back to GitHub, log into your ac­count. This is mine:

Figure 8.9 - GitHub profile main page

Figure 8.9   GitHub profile main page

There are cur­rently two repos­i­to­ries: lab-1st-repo that we made in section 4.2 and lab-brack­ets-git that we made in section 5.2.

We’re now going to make a third repos­i­tory for the lab-01-web­site that is cur­rently in our local repos­i­tory.

I’m going to give the re­mote repos­i­tory the same name as the local repos­i­tory, i.e.:

lab-01-web­site

It is not nec­es­sary for the names to be the same; I do it only to avoid con­fu­sion.

To cre­ate the new re­mote repos­i­tory in GitHub, click ei­ther the start pro­ject but­ton or the new repos­i­tory but­ton (they both do the same).

Ei­ther op­tion will open the Cre­ate new repos­i­tory page. I’m going to se­lect the fol­low­ing op­tions (Table 8.2 and Fig­ure 8.10):

PROPERTY VALUE
Repository name lab-01-website
Description A simple website repository used as an example to demonstrate how the Brackets-Git extension works
Public/private Public
Initialise with README Unticked (not selected)
Add .gitignore None
Add a license None
Table 8.2   lab-01-website repository properties
Figure 8.10 - GitHub—Create the lab-01-website repository

Figure 8.10   GitHub—Create the lab-01-website repository

Click cre­ate repos­i­tory and it will au­to­mat­i­cally open the repos­i­tory page:

Figure 8.11 - GitHub—lab-01-website repository page

Figure 8.11   GitHub—lab-01-website repository page

This gives us a com­pletely empty repos­i­tory—GitHub is a bit com­plainy at this point (ok, I might have made that word up). It knows the repos­i­tory is com­pletely empty and it is telling us how to put some­thing in it.

That’s next.

Make a note of, or copy the SSH URL from the GitHub repos­i­tory page (high­lighted in or­ange above), you will need this for what fol­lows.



End flourish image