This is a short introductory course to using version control with GitKraken GUI. Developed originally for Manaaki Whenua Landcare Research training.
- Create a repository on your local machine using GitKraken
- Make changes to the R script file
a) create a
my-R-notes
file to keep some notes to yourself b) make changes in the main script file - Commint the main script file
- Make more changes - using the script file.
- Add
my-R-notes
file to.gitignore
- Commit
- Create an
Rmd
file to generate the report - Run
knitr
- Commit
Rmd
to the repository andpdf
to .gitignore - Break something down in the main script and close RStudio.
- Reopen, try running...
- Using GitKraken get the previous version (the working one).
Notes: try making modifications in the past, in the past checked out versions.