A presentation to teach engineers how to version control their code using Git.
https://prncevince.github.io/using-git
The slides are an intro to setting up and using version control (Git) within the M&A data analysis & software development environments.
- Preface
-
You will mess up
- It's okay to mess up
- ... git is stupid
- It's okay to mess up
-
man git
:GIT(1) Git Manual GIT(1)
NAME
git - the stupid content tracker
-
- Setup
- Installing Git & Friends
- Unix Terminal Emulator (Standing up Development Environment)
- SSH Keys
- Generating Keys
- Starting SSH Agent
- Adding private key to agent
- Adding public key to repository
- Testing connection
- SSH Config
- Git Config
- username / email
- 2 Methods - Getting Started
- Initializing a Repo
- Brand New Repo
- Preexisting Repo
- R Project + RStudio + Git setup
- Concepts
- 3 trees
git init
git add
git commit
git push
git pull
git fetch
git merge
git reset
git revert
git tag
- Git Large File Storage (LFS)
- Demo project w/ common tools for different types of R projects
- R Project
- renv
- lintr & stylr
- doc-toc
- npm scripts (don't even need a Node.js project)