---
# System prepended metadata

title: Migrating a Unity Project to GitHub

---

# Migrating a Unity Project to GitHub

1. First, create a GitHub account at https://github.com/signup

1. Then in your browser go to https://github.com/new, name your repository anything of your choice, and for gitignore, select Unity 

1. Then download GitHub desktop at 
https://desktop.github.com, continue with setup and click sign in with browser 

1. Click clone repository, and select the GitHub repository you just created, on the top bar, click Repository > Show in file manager 


1. Then copy all the files from your old unity folder to the new one (your old folder is likely in C:\Users\username\, you can find it by opening unity hub and clicking show in explorer as well)
**IMPORTANT, MAKE SURE TO COPY THE FOLDERS INSIDE OF YOUR PROJECTS FOLDER, AND NOT THE FOLDER ITSELF. COPYING ONLY ONE FOLDER WILL KILL GITIGNORE DETECTION**

1. In the summary section, write initial commit, then click Commit to main, and push once comitting is done

1. Once all the files are copied, open Unity Hub, and remove your existing project 

1. Then click import project from disk, and import the repository. Your repository will be in Documents\GitHub\RepositoryName\.

1. Companion video: https://www.youtube.com/watch?v=mA8_mEanu50
