.gitignore
.Rproj.user
.Rhistory
.RData
.Ruserdata
/.quarto/
/_site/git ignoreThe quick procedure to commit and push changes usually implies selecting all changes and pushing them quickly on the remote repository. While this is fine in most cases, one should be careful not to commit certain files, such as large or confidential files.
In order to facilitate this process, we rely on a file called .gitignore located at the root of the git repository. A .gitignore file is essentially a text based file that contains a list of file names or file names expressions (wrote in a form of regular expression, or regex)
.gitignoreIf a file is added to .gitignore whilst having previously been committed, the .gitignore will be, well, ignored. The following describes the procedure to correct this. Using the terminal, here are the steps.
Update your .gitignore file with the new files you wish to ignore, commit and push the changes to this file
Remove all cached files
.gitignore will be omitted)Steps 2 to 4 could be achieved in one-line