Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to get files out of the git tab if rstudio

Tags:

git

r

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.

enter image description here

like image 827
Tyler Rinker Avatar asked Sep 01 '12 00:09

Tyler Rinker


1 Answers

Add the following lines to the .gitignore file:

.gitignore
.Rbuildignore
pacman.Rproj
like image 94
seancarmody Avatar answered Sep 28 '22 00:09

seancarmody