Git and Github

Throughout this course we'll use Git for version control, and Github as a platform for both collaboration and publication. LNU has a good primer on Git, in Swedish. Also check out this excellent interactive 15-minute tutorial.

For those of you who don't speak Swedish, here is a quick primer on the usage in the RIA course:

  • Install Git on your computer (you can test if you have it by typing git --version in the terminal)
  • Create an account on Github if you haven't already done so
  • Install a GUI if you don't want to work from the terminal. The main clients are Github for Mac or Github for Windows.
  • Create a repository for this course. The repository must be public.
  • Create a folder on your computer for the course project.
  • Navigate to that folder and type git init
  • Create and switch to a branch named gh-pages by running git checkout -b gh-pages
  • Connect the folder to the repository on Github by running git remote add origin<gituser>/<reponame>.git, exchanging <gituser> and <reponame> for your user name and repository name respectively.

Since we're using the "magical" branch name gh-pages, your app will be published at http://<gituser><reponame>.

Throughout the course you will be forking other people's repositories, and also receive pull requests to your own repo as others are helping you out.

You can score bonus points by using more advanced Git and Github functionality, such as:

  • creating feature-specific branches where you work on new functionaloity, which is then merged back into the main gh-pages branch when (or if) it is finished
  • use issues on Github for project management (this will also help others to help you)
  • use labels for issues and pull requests
  • assign issues to users
  • sort issues and commits with milestones

Welcome to CoursePress

en utav Linnéuniversitets lärplattformar. Som inloggad student kan du kommunicera, hålla koll på dina kurser och mycket mer. Du som är gäst kan nå de flesta kurser och dess innehåll utan att logga in.

Läs mer lärplattformar vid Linnéuniversitetet

Student account

To log in you need a student account at Linnaeus University.

Read more about collecting your account

Log in LNU