diff --git a/0-Intro.md b/0-Intro.md deleted file mode 100644 index 87484cc8dce6f48c89b7298ac6e4582ca2d88d09..0000000000000000000000000000000000000000 --- a/0-Intro.md +++ /dev/null @@ -1,118 +0,0 @@ -# Introduction to git - a powerful version control system - -## block structure -- Why git? - - poll from registration - - other points from our list -- git installation hands on - - git on the command line - - navigate manipulate on cli - - ls, pwd, cd, mv, rm, cp, mkdir, rmdir -- short break (optional) -- (like) try git on beamer (closed laptops) - - try git would be 1.1 to 1.9 - - init - - status - - add - - commit - - log (metadata only) -- short break (optional) -- hands on - created project - - multiple commits - - multiple files - - diff - - log (with patch) -- wrap up hands on - - problems that occurred - - conclusion - -## Why git? -### Why would you want to use a VCS, e.g. git? -- Summary of answers to question from registration. -- git helps you to keep an overview of a project. - -### Thoughts from the net “Have you ever:” - -- Made a change to code, realised it was a mistake and wanted to revert back? -- Lost code or had a backup that was too old? -- Had to maintain multiple versions of a product? -- Wanted to see the difference between two (or more) versions of your code? -- Wanted to prove that a particular change broke or fixed a piece of code? -- Wanted to review the history of some code? -- Wanted to submit a change to someone else's code? -- Wanted to share your code, or let other people work on your code? -- Wanted to see how much work is being done, and where, when and by whom? -- Wanted to experiment with a new feature without interfering with working code? - -In these cases, and no doubt others, a version control system should make your life easier. - -To misquote a friend: A civilised tool for a civilised age. - -by si618 at [https://stackoverflow.com/a/1408464](https://stackoverflow.com/a/1408464) - - -## git installation hands on -[instructions](https://git-scm.com/book/en/v2/Getting-Started-Installing-Git) - -### installation on ubuntu -We will use the version from the git ppa: -```bash -sudo apt-get install ppa-purge -sudo add-apt-repository ppa:git-core/ppa -sudo apt-get update -sudo apt-get dist-upgrade -sudo apt-get install git -``` - -### installation on windows -- [Download](https://git-scm.com/download/win) - - choose 64 bit - - portable if you do not have admin rights -- default install options look OK -- Git Bash -- Windows Explorer context menue has *Git Bash Here* and *Git GUI Here* options -- Windows credential window will pop up when accessing remotes with authentication - -### navigate and manipulate on cli -- pwd -- ls -- cd -- mv -- rm -- cp -- mkdir -- rmdir - - -### configure git -```bash -git config --global user.name "Your Name" -git config --global user.email "your.name@idiv.de" -``` -- eventually additionally configuration for windows/linux/mac stuff - - line break configuration done during install for windows -- eventually mention difference global local - -## short break (optional) - -## show try git like tutorial on beamer (closed laptops) -- try git would be 1.1 to 1.9 -- create project directory -- init -- status -- add -- commit -- log (metadata only) - -## short break (optional) - -## hands on - created project -- multiple commits -- multiple files -- diff -- log (with patch) -- test this with a windows and mac machine to see things like editor, linebreaks, etc. - -## wrap up hands on -- problems that occurred -- conclusion diff --git a/index.html b/index.html deleted file mode 100644 index 97832af5ab04fff25a0d4f27a7b34e9bf4d49ed0..0000000000000000000000000000000000000000 --- a/index.html +++ /dev/null @@ -1,70 +0,0 @@ -<!DOCTYPE html> -<html> - <head> - <meta charset="utf-8" /> - <meta name="author" content="Dirk Sarpe and Christian Krause" /> - <title>git basics</title> - <meta name="apple-mobile-web-app-capable" content="yes" /> - <meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" /> - <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> - <link rel="stylesheet" href="reveal.js/css/reveal.css" /> - <link rel="stylesheet" href="reveal.js/lib/css/zenburn.css" /> - <style type="text/css">code{white-space: pre;}</style> - <link rel="stylesheet" href="reveal.js/css/theme/black.css" id="theme" /> - <link rel="stylesheet" href="css/ribbon.css" /> - </head> - - <body> - - <!-- start of slides --> - - <div class="reveal"> - <div class="slides"> - <section id="title" data-markdown> - # git seminar - - 1. [for beginner-level git users](basics.html) - </section> - </div> - </div> - - <!-- ribbon --> - - <div class="ribbon-wrapper right"> - <div class="ribbon"> - <a href="https://git.idiv.de/sc/edu/git-seminar"> - edit - </a> - </div> - </div> - - <!-- reveal.stuff --> - - <script src="reveal.js/lib/js/head.min.js"></script> - <script src="reveal.js/js/reveal.js"></script> - - <script> - Reveal.initialize({ - controls: true, - progress: true, - slideNumber: true, - history: true, - center: true, - keyboard: true, - maxScale: 1.5, - slideNumber: false, - theme: Reveal.getQueryHash().theme, - transition: Reveal.getQueryHash().transition || 'default', - - dependencies: [ - { src: 'reveal.js/lib/js/classList.js', condition: function() { return !document.body.classList; } }, - { src: 'reveal.js/plugin/zoom-js/zoom.js', async: true, condition: function() { return !!document.body.classList; } }, - { src: 'reveal.js/plugin/notes/notes.js', async: true, condition: function() { return !!document.body.classList; } }, - { src: 'reveal.js/plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: 'reveal.js/plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } }, - { src: 'reveal.js/plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } }, - ] - }); - </script> - </body> -</html>