For safety reasons, in my own R packages, how to have private files like .Renviron only available locally and prevent from being pushed to GitHub?
Asked
Active
Viewed 24 times
0
-
4You can use .gitignore – Bruno Nov 04 '20 at 18:52
-
3or you can use `git add file_name.R` instead of `git add .` and add the specific files instead of all files. I would personally use both methods, the .gitignore` as well as adding only the files which you want to push to github. – sconfluentus Nov 04 '20 at 18:59
-
Thank you, that did the trick. If any of you wants to write the answer, I will accept it. – GitHunter0 Nov 04 '20 at 19:52