# git basics
note:
- if you have questions ask them right away
- hand out cheat sheets
## motivation
> Why should I use git?
- boss
- project version history
- project management
- show scenarios
## motivation #1
### avoid mess

## motivation #1
### want structure

## motivation #2
### throw-away playgrounds

notes:
- test stuff without interfering
- throw away if garbage
- integrate if good
- switch back and forth
- (done right) decision based on regression testing
## motivation #3
### collaboration made easy
> This text cuntains a typo.
notes:
- demo GitLab
- [go to project](https://git.idiv.de/sc/edu/git-seminar)
- check if still in master
- edit
- change **target branch** to create merge request
- commit message:
```
fixes typo
learn how to use a spell checker
```
## audience
- beginner-level git users
## goals
- get you started
# [cheat sheet](https://idiv-biodiversity.github.io/git-cheat-sheet/)
## command line
- Ellen Ripley uses command line
- Chuck Norris uses command line
## os packages
**Linux:** bash and git
**Mac:** bash and git
**Windows:** cmder
## setup
```bash
# identity
git config --global user.name 'Jane Doe'
git config --global user.email 'jane.doe@feminism.org'
# colors
git config --global color.ui auto
# aliases
git config --global alias.unstage 'reset HEAD --'
git config --global alias.lol \
'log --graph --decorate --oneline --all'
```
## my project
demo
notes:
- git init hello
- README.md
- LICENSE
- TODO really talk about licenses? I should, because it's
important, but it takes time away from other things ...
- src/hello.py
## web apps
- GitHub demo
- GitLab demo