NEON-biodiversity / Ostats

O-statistics (community pairwise niche overlap statistics)

Home Page:https://neon-biodiversity.github.io/Ostats/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remove .Rproj.user from commits

qdread opened this issue · comments

@yyue-r @isafluck

I have noticed that there is a file called .Rproj.user in the repository. That file should not be included in any commits because it is an internal "hidden" file that should exist on all of our individual machines but should not be pulled and pushed when we commit to the remote repository. It is in the .gitignore so future commits should not include it. Please make sure you do not commit any more changes to this file. All of use should have a different version. It contains information such as paths to local files on our individual machines, and the state of the windows of RStudio the last time we opened the project on our computers, etc. I will try to resolve it on my end as well.

Can everyone please run the following on the terminal in their local Ostats git repository directory?

git rm -r --cached .Rproj.user/

This will ensure that the local changes of .Rproj.user will stop tracking on the remote repository!

Hello, Quentin!
I got the following message
image

What is wrong?

Follow up -- if you are on Windows you may not be able to run this in your terminal in rstudio, you will need to run it in git bash in the appropriate directory.

Ok, I downloaded Git and ran the command! Now I think it worked.
image

From now on I will be careful not to commit and push any files related to .Rporj .

Great! 🥂

@yyue-r Just to follow up, were you ever able to do this or do you still need help getting it to run?

@qdread I did it and my computer tells me that no .Rproj files can be found. So I guess it should be fine?

Thanks! I'll go ahead and close this.