nerc-ceh.github.io

https://nerc-ceh.github.io/version_control/exercise2

Exercise 2. Work on-line with Github

Throughout Exercise 1 your Git repository only existed locally to you inside your project folder. You will now learn about hosting it remotely on Github. Github is a service that allows you to host your Git repository on-line so you can access it from anywhere, share it, collaborate and more. We have a NERC-CEH organisation in Github that you can join and it will provide a private place for you to host your repositories. In this exercise you will:

Please Note: a few days after this workshop we will delete all the test repositories you create in Github today.

Prerequisites: On-line

To participate in this exercise you need to be on-line. There should at least be wifi available during the workshop, so please use that.

Step 1. Create a Github account and join the NERC-CEH organisation

Step 2. Create a private repository

Step 3. Download (clone) the Github repository

To start adding and managing files you need to download your Github repository. This is called cloning your repository.

Step 4. Add files to your local copy

Before:

After:

Step 5. Push to Github

End of exercise 2