NEON-biodiversity / Ostats

O-statistics (community pairwise niche overlap statistics)
https://neon-biodiversity.github.io/Ostats/
Other
7 stars 2 forks source link

Remove .Rproj.user from commits #24

Closed qdread closed 3 years ago

qdread commented 3 years ago

@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.

qdread commented 3 years ago

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!

isafluck commented 3 years ago

Hello, Quentin! I got the following message image

What is wrong?

qdread commented 3 years ago

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.

isafluck commented 3 years ago

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 .

qdread commented 3 years ago

Great! 🥂

qdread commented 3 years ago

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

yyue-r commented 3 years ago

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

qdread commented 3 years ago

Thanks! I'll go ahead and close this.