Which comes first: .Rproj or Git repo?

I want to use the RStudio IDE to work on a github branch. Which do I do first, download the git repository and then create an RStudio project or create the RStudio project and then download or otherwise try to connect to Github?

You can do either.

Have a look at this: