# git basics note: - if you have questions ask them right away - hand out cheat sheets
# intro
## motivation > Why should I use git? - boss - project version history - project management - show scenarios
## motivation #1 ### avoid mess ![blah](img/draft_mess.png)
## motivation #1 ### want structure ![blah](img/gitk-pretty-history.png)
## motivation #2 ### throw-away playgrounds ![playground](img/motivation-throwaway-playground.svg) 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/)
# let's get started
## 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

EOF

fork me