This is a quick tutorial on how to use GitHub Desktop to turn an RProject into a git repository!
Before you get started, make sure you have:
This demo was created using Windows, however the procedure should be very similar in MacOSX.
For this tutorial, I’m going to use a folder called
test_repo
. Here, I’ve located the folder
test_repo
in Windows Explorer.
It’s unlikely that you’ll run into any issues, but just to be safe, we’ll make a backup copy of your folder.
In Windows, it’s easy.
The procedure is very similar on Mac. Here’s a quick tutorial on zipping folders on Mac.
Now, fire up GitHub Desktop.
In the File menu, select “Add local repository…”:
Click the “Choose…” option in the popup:
This will bring up a file browser. Navigate to the folder containing your RProject and click the “Select Folder” button.
You’ll get a warning that the folder you selected is not a Git repository. The popup will give you the option to create a repository:
Click the link and it’ll bring up a new popup:
Click the “Create repository” button.
Now you’re ready to publish your repository on GitHub. It’s easy in GitHub Desktop. Just click the “Publish repository” button:
You’ll see a new popup. Uncheck the “Keep this code private” option:
Click the “Publish repository” button and you’re done!
To verify that your repository was published, navigate to your github.com page and search for your new repository: