I'm a doof and keep uploading .Rpoj, .Rbuildignore and .gitignore to github. Some of these files mess with other project contributor's local repo when they pull them. I've figure out how to fix this after I've done it but it involves so command line code:
git reset --hard (number of last good commit)
git push -f origin HEAD^:master
I prefer not to do this monkey business. Is there a way to remove these pesky files from the git tab windows so I don't accidentally upload them anymore. I don't even know what to search for to find an answer.
Here's a screen shot of files I need in my local repo but want to disappear out of the git tab window in RStudio.
Add the following lines to the .gitignore
file:
.gitignore
.Rbuildignore
pacman.Rproj
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With