Initial commit
commit 6643aecfb3e060eabe06fa0514dc7a023b842818
3 changed files with 56 additions and 0 deletions
.gitignore ADDED
| @@ -0,0 +1,2 @@ | ||
| 1 | +*.log | |
| 2 | +*.tmp | |
LICENSE ADDED
| @@ -0,0 +1,21 @@ | ||
| 1 | +MIT License | |
| 2 | + | |
| 3 | +Copyright (c) 2025 glibCode | |
| 4 | + | |
| 5 | +Permission is hereby granted, free of charge, to any person obtaining a copy | |
| 6 | +of this software and associated documentation files (the "Software"), to deal | |
| 7 | +in the Software without restriction, including without limitation the rights | |
| 8 | +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| 9 | +copies of the Software, and to permit persons to whom the Software is | |
| 10 | +furnished to do so, subject to the following conditions: | |
| 11 | + | |
| 12 | +The above copyright notice and this permission notice shall be included in all | |
| 13 | +copies or substantial portions of the Software. | |
| 14 | + | |
| 15 | +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
| 16 | +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
| 17 | +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
| 18 | +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
| 19 | +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
| 20 | +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
| 21 | +SOFTWARE. | |
README.md ADDED
| @@ -0,0 +1,33 @@ | ||
| 1 | +# Git & GitHub in Practice | |
| 2 | + | |
| 3 | +Example code and exercises for the glibCode course **[Git & GitHub in Practice](https://glibcode.net/courses/git-github/)** (Beginner, about 4 hours). | |
| 4 | + | |
| 5 | +Commits, branches, merges and pull requests, and how to undo almost anything without panicking. | |
| 6 | + | |
| 7 | +## Lessons | |
| 8 | + | |
| 9 | +| # | Lesson | Code | | |
| 10 | +| --- | --- | --- | | |
| 11 | +| 1 | Why version control | [`lessons/01-why-version-control`](lessons/01-why-version-control/) | | |
| 12 | +| 2 | Your first commit | [`lessons/02-your-first-commit`](lessons/02-your-first-commit/) | | |
| 13 | +| 3 | Branches | [`lessons/03-branches`](lessons/03-branches/) | | |
| 14 | +| 4 | Merging and conflicts | [`lessons/04-merging-and-conflicts`](lessons/04-merging-and-conflicts/) | | |
| 15 | +| 5 | Remotes and GitHub | [`lessons/05-remotes-and-github`](lessons/05-remotes-and-github/) | | |
| 16 | +| 6 | Pull requests and reviews | [`lessons/06-pull-requests-and-reviews`](lessons/06-pull-requests-and-reviews/) | | |
| 17 | +| 7 | Undoing things | [`lessons/07-undoing-things`](lessons/07-undoing-things/) | | |
| 18 | +| 8 | A tidy history with rebase | [`lessons/08-a-tidy-history-with-rebase`](lessons/08-a-tidy-history-with-rebase/) | | |
| 19 | + | |
| 20 | +## Getting started | |
| 21 | + | |
| 22 | +```sh | |
| 23 | +git clone https://git.glibcode.net/glibcode/git-github.git | |
| 24 | +cd git-github | |
| 25 | +``` | |
| 26 | + | |
| 27 | +A Linux or macOS terminal. On Windows use WSL. | |
| 28 | + | |
| 29 | +Questions? Ask in the course forum or write to help@glibcode.net. | |
| 30 | + | |
| 31 | +## License | |
| 32 | + | |
| 33 | +The code is MIT licensed (see `LICENSE`). The lesson texts are © glibCode. | |