RStudio
This page presents the minimal configuration of RStudio Desktop for a better reproducibility.
Go to Tools > Global Options > General and:
- uncheck Restore .RData into workspace at startup
- select Never save workspace to .RData on exit
- uncheck Always save history (even when not saving .RData)

Tips for better reproducibility
- Never save your workspace as
.RData: decide what you want to save and usesave(),saveRDS(),write.csv(), etc. - Never save your command history: write your code in scripts, not in the console
Now follow instruction to configure git.