This repository was archived by the owner on Sep 20, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 44
Workshop 4 Git(Hub) workflows, Pull Requests, resolving conflicts
Marc Hanheide edited this page Oct 17, 2018
·
7 revisions
This week, you shall all start using GitHub for our development process. We will learn about forking, pulling, merging
You may find the official GitHub Desktop Client useful for you daily work, but also learn the command line tools!. To install the unofficial build for Linux, execute this script, then launch it with the (very inaptly named) command desktop
.
Make sure you look at the useful resources for today's session.
Look at https://guides.github.com/introduction/git-handbook/ and Find the Section "Example: Start a new repository and publish it to GitHub"
- Do those steps to put your source code into a remote GitHub (public) repository that you created.
- Team up with somebody else, can
git clone
their respective repository. - Each of you edit some files in your local own repository and discuss how the other one can get them.
- Fork https://github.com/LCAS/CMP9767M into your own github account (if you haven't done so yet), then clone on your computer
- create a new branch from the
master
branch, namedweek_4
and make sure you are working in that branch (how can you check?) - create and commit a file
mytest.txt
in branchweek_4
with content:this is some text I include in this file
- check out branch
master
again (where did you file go?) - check out a new branch
week_4_sidetrack
based onmaster
- create and commit again a file
mytest.txt
in branchweek_4_sidetrack
with content:this is some MORE text I include in this file
- check out
week_4
again - merge
week_4_sidetrack
intoweek_4
(you'll have a conflict to resolve)
- Add your code from previous weeks into its own package in a separate branch (e.g.
week_3
), based on themaster
branch. - Open a "pull request" against the
master
branch of https://github.com/LCAS/CMP9767M. - Observe the continuous integration output
- Read about http://wiki.ros.org/rostest and design your own test for your code from last week