woensdag 15 juni 2016

What is Github?

Introduction

GitHub is a code hosting platform for version control and for collaboration. You can work together on projects from any place you want. Now once in a while, I'm using Github for working on my R skills For exercises in the course I need to create and maintain a Github repository. A repository is a usually a project and it can contain files and folders.

Now as I said, I'm not an user that often uses Github and therefore I wrote this blog. There are a couple of steps that you have to do in order to check in your code, in short:
  1. Create the Github account.
  2. Install the Github Desktop.
  3. Create a repository.
  4. Copy the files in the Github folder.
  5. Commit the code.
  6. Sync the code with Github.com
Commit and syncing,  I do find a bit confusing: Commit is saving the code in your project and syncing is syncing the commited code with Github.com. Let's keep that in mind.


Working with Github

Now if you create a repository a folder is created. this one is for the course Reproducible research R on Coursera.


Opening github desktop will show the files and code in the github folder on your local system.


Nothing is in the github.com repository, yet


Next step is syncing the code with Github.com


And the files are synced with Github.com



Conclusion

A small blogpost about using Github with Github desktop.

Greetz,
Hennie

Geen opmerkingen:

Een reactie posten