In this lesson we will learn how to keep repositories in sync and how to work with remote repositories on GitHub and other services. We will discover and exercise the forking workflow, and finally look into how to automate tasks using Git hooks.
We will do this exercise on GitHub but also GitLab and Bitbucket allow similar workflows and basically everything that we will discuss is transferable. With this material and these exercises we do not endorse the company GitHub. We have chosen to demonstrate a number of concepts using examples with GitHub because it is currently the most popular web platform for hosting Git repositories and the chance is high that you will interact with GitHub-based repositories even if you choose to host your Git repository on another platform.
Basic understanding of Git.
You need a GitHub account.
|09:00||Working with remotes and centralized workflow||
How can we share repositories with others?
How can we keep repositories in sync?
|10:20||Non-bare and bare repositories||
What are bare repositories?
How can we create a common repository for a group on our local computer or server?
|10:30||Distributed version control and forking workflow||
How can we collaborate with people who we might not know yet?
What is a fork?
What is a pull request or merge request?
What is code review?
How do teams collaborate on GitHub or GitLab or Bitbucket?
|11:30||How to contribute changes to somebody else's project||What steps can we recommend to contribute changes to somebody else's project?|
|11:45||Hooks||How can we automate tasks depending on events in the Git repository?|