├── .gitignore ├── README.md ├── assets ├── branch-1.png ├── branch-2.png ├── branch-3.png ├── branch-4.png ├── branch-5a.png ├── branch-5a.svg ├── branch-5b.png ├── branch-5b.svg ├── branch-5c.svg ├── branch-5d.svg ├── branch-5e.svg ├── computer-society-logo.svg ├── head-symbolic.png ├── internals-3a.svg ├── internals-3b.svg ├── internals-3c.svg ├── linux-system.png ├── nuieee-logo.png └── workflow.svg ├── css └── main.css ├── index.html ├── js └── main.js ├── main.md └── slides ├── 00-template.md ├── 01_git_introduction.md ├── 02_git_workflow.md ├── 03_git_internals.md ├── 04_git_merge.md ├── 05_git_remote.md └── merge-slides.sh /.gitignore: -------------------------------------------------------------------------------- 1 | lib 2 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # Workshop Introduction to Git 2 | 3 | This repository contains the presentation and exercises for the Git workshop, prepared and presented by **IEEE University of Porto Student Branch**. 4 | 5 | ## Workshop Content 6 | 7 | In the repository code you can find the presentation, developed using [Remark](https://remarkjs.com). It is a slideshow tool where each slide content is written in Markdown, and the presentation style can be customized through CSS. 8 | 9 | The presentation is hosted on GitHub pages: [https://ieeeupsb.github.io/workshop-git/](https://ieeeupsb.github.io/workshop-git/) 10 | 11 | The exercises and setup instructions are available on the [**Wiki**](https://github.com/ieeeupsb/workshop-git/wiki) (currently in portuguese, but will be in english soon). 12 | 13 | ## Topics 14 | 15 | This workshop material covers the basics of Git, it intends to cover all the useful comands for your Git workflow, as well view history through logs, organize your development with branches, and so on. 16 | 17 | - Introduction to Git 18 | - The three Git sections/trees: Working Directory, Staging Area or Index, and Repository/Database 19 | - Commands for the typical workflow: work, stage, commit, repeat! 20 | - Aditional commands such `log`, `status`, `diff` and its options. 21 | - A look inside into Git Internals 22 | - Introduction to branches 23 | - What are they and motivation to make use of them 24 | - How to merge 25 | - The three merge scenarios and how to deal with conflicts 26 | - Remote repositories 27 | - How Git manages and associates local repositories with remote ones 28 | - How to create remote branches 29 | - How to pull remote branches 30 | - Configure tracking branches 31 | 32 | ## Authors 33 | 34 | - **Fábio Gaspar** : Github (@fabiodrg666) | Twitter (@fabiodrg666) | [LinkedIn](https://www.linkedin.com/in/fabiodr-gaspar/) 35 | 36 | ## Revision history 37 | 38 | ### 21st March 2018 39 | 40 | - Initial presentation and Wiki 41 | 42 | ### 22nd March 2019 43 | 44 | - Moved from PowerPoint presentation to Remark (Markdown is love :heart:) 45 | - Enhanced diagrams in the presentation 46 | - More detailed and clear explanation of how local and remote repositories work 47 | -------------------------------------------------------------------------------- /assets/branch-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/branch-1.png -------------------------------------------------------------------------------- /assets/branch-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/branch-2.png -------------------------------------------------------------------------------- /assets/branch-3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/branch-3.png -------------------------------------------------------------------------------- /assets/branch-4.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/branch-4.png -------------------------------------------------------------------------------- /assets/branch-5a.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/branch-5a.png -------------------------------------------------------------------------------- /assets/branch-5a.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/branch-5b.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/branch-5b.png -------------------------------------------------------------------------------- /assets/branch-5b.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/branch-5c.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/branch-5d.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/branch-5e.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/computer-society-logo.svg: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 185 | -------------------------------------------------------------------------------- /assets/head-symbolic.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/head-symbolic.png -------------------------------------------------------------------------------- /assets/internals-3a.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/internals-3b.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/internals-3c.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /assets/linux-system.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/linux-system.png -------------------------------------------------------------------------------- /assets/nuieee-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ieeeupsb/workshop-git/19d17a8dc4586f9b4b1645482ec92e93c9b36308/assets/nuieee-logo.png -------------------------------------------------------------------------------- /assets/workflow.svg: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /css/main.css: -------------------------------------------------------------------------------- 1 | @import url('https://fonts.googleapis.com/css?family=Roboto'); 2 | @import url('https://fonts.googleapis.com/css?family=Oswald'); 3 | 4 | :root { 5 | --bg-dark: #212121; 6 | --accent-primary: #ff0036; 7 | } 8 | 9 | body { 10 | font-family: 'Roboto', sans-serif; 11 | font-size: 1.7rem; 12 | line-height:1.5; 13 | } 14 | 15 | .remark-slide-content { 16 | font-size: inherit; 17 | } 18 | 19 | h1, h2, h3 { 20 | font-family: 'Oswald', sans-serif; 21 | font-weight: normal; 22 | margin: 1rem 0; 23 | } 24 | 25 | /** 26 | * Used on the first slide 27 | * */ 28 | .slide_title { 29 | position: relative; 30 | background-color: var(--accent-primary); 31 | color: white; 32 | } 33 | 34 | /** 35 | * Used by title slides (first slide) to show the workshop title and authors, in addition to student branch logo and chapter logo. The logos must be contained in a div with class slide_logos 36 | */ 37 | .slide_logos { 38 | display: flex; 39 | padding: 1rem; 40 | position: absolute; 41 | bottom: 1em; 42 | left: 3em; 43 | right: 3em; 44 | } 45 | 46 | .slide_logos > img { 47 | flex: 1; 48 | margin: 0.5rem 1.5rem; 49 | } 50 | 51 | /** 52 | * Used to introduce new section topics 53 | */ 54 | .slide_section { 55 | background-color: var(--bg-dark); 56 | color: white; 57 | } 58 | 59 | 60 | /** 61 | * Code snippets 62 | */ 63 | .remark-code, .remark-inline-code { 64 | font-size: 0.8em; 65 | font-family: Hack, monospace; 66 | } 67 | 68 | .remark-inline-code { 69 | font-weight: bold; 70 | color: var(--accent-primary); 71 | } 72 | 73 | .remark-code-span-highlighted { 74 | color: white; 75 | background-color:rgba(255, 99, 0, 0.88); 76 | } 77 | 78 | .flex { 79 | display:flex; 80 | } 81 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 |
4 |