Skip to content

Getting started with Github

The goal of this exercise is to upload your current progress into a version control system.

For this course, we are using Github as our platform.


Repository

  1. Sign Up to Github.com
  2. Install git on your workstation (with any package manager or from their website)
  3. From the Github web interface, create a new repository with the name yncrea-cloudcomputing-microservice. It will serve as the base for the following days and all changes will be stored here.
  4. Follow the instructions on how to add existing source code into your newly created repository. Perform the indicated steps at the root of your project folder.

    Info

    A good practice is to separate the micro services and the infra.
    From now on, each micro service will have its own git repository.
    With the same logic, the infra as code will also have its own repo.

  5. Push your source code into your repository

    Info

    Github Guides is a good source of basic knowledge. Check it out :)


Once this is done, you can take the remaining time and get familiar with the Gitflow best practice here.

Info

Ideally, for future labs you will create a new branch for every exercise and merge it to the Git master through a "Pull Request". Go ahead and prepare your first branch for the next exercise.

Success

Congratulation, you have your own Github repository, and you are part of the Open Source community !