Hello everybody! This is an example that a would expect from my students
I provide the initial starter code on Master. Students should then create a dev branch to work from. As they work through the assignment, they create several feature branches, merging into dev as each is completed. Then finally merging dev into master on assignment completion.
Hi everybody, here’s my screenshot about my branches exercise.
@mozzadrella I have not finished understanding the following
when I use the command:
-git checkout -b
continues working on the same line / branch. And when I use the commands
Work on another line / branch
I did mine with a series of labs. Students solve the same problem only using different types of reiteration as the solution. I know, it doesn’t emphasize the aspect of when you SHOULD use a particular type of loop, but it does give some quick practice with syntax. Great tool for visualizing the idea of branching though. I really like it!!
Not currently teaching a class, but in this assignment students would need to create a series of html files for biological organisms with descriptions (i.e. wolf.html, mushroom.html) and push them to the appropriate branch in the repository to learn about the concept of biological classifications.
Hi I have completed second assignments.
@mozzadrella when we do -b branch that branch point to above the head and if you do git branch “xxx” it points to below the head. Is there any difference in that?
Below is my screenshot- I am off for the summer so I just visualized how I could use this for a generic group project in one of my classes.
I’m imagining starting the course with a quick HTML refresher. The students would implement the page and after each significant addition to the page make a commit. Before moving on to refresh their basic CSS I want them to make sure they’ve got validated HTML5. At that point they would branch again for some old style CSS layout based on floats. After getting that looking okay. We’d go back to the HTML branch and branch again, CSS-Grid branch, to see how much easier and nicer it is to do layout with CSS grid.
The idea I really want them to understand is to use lots of commits and whenever they are trying something new use a branch! Here we will start from the same base file and use two different layout methods. For a more basic example could use the difference between external and internal style sheets.
Simple web-design project:
provide starter code
three branches to implement same design using tables, flexboxes, or grids