Unity/GitHub Guide

Linking a Unity project with a GitHub repository using Git Bash

A detailed guide to connect your Unity project with your GitHub repo using Git Bash

Git Installation

To install it, we need to choose the proper installer according to our operating system into the next site: Git Bash Installer

Once you have the installer, execute it and follow the default installation process
Once you have the installer, execute it and follow the default installation process
Once you have the installer, execute it and follow the default installation process
Git Bash terminal
Git Bash terminal
Git Bash terminal

Navigation commands

If you’re not familiar with the navigation commands to reach your system files then you should check these:

Left image shows change of directory to a disk and right image shows change of directory to a folder
Left image shows change of directory to a disk and right image shows change of directory to a folder
Left image shows change of directory to a disk and right image shows change of directory to a folder
Navigation to the Unity project folder using the cd command
Navigation to the Unity project folder using the cd command
Navigation to the Unity project folder using the cd command

Connect GitHub repo to your Unity project folder

Now, in order to connect our repo we must create one in our GitHub account and decide if it’s going to be public (so everyone can watch what you’re coding) or private (so only people you invite can watch or modify your code).

Add a Unity .gitignore file before creating the repo
Add a Unity .gitignore file before creating the repo
Add a Unity .gitignore file before creating the repo
You can just click on the clipboard icon to copy the url
You can just click on the clipboard icon to copy the url
You can just click on the clipboard icon to copy the url
Note: git remote refers to the type of repository that we are connecting to, add refers to the addition of it and origin refers to the name of the remote server, which is often used in the industry
Note: git remote refers to the type of repository that we are connecting to, add refers to the addition of it and origin refers to the name of the remote server, which is often used in the industry
Note: git remote refers to the type of repository that we are connecting to, add refers to the addition of it and origin refers to the name of the remote server, which is often used in the industry
This shows that now we have permission to fetch and push information from our GitHub repository
This shows that now we have permission to fetch and push information from our GitHub repository
This shows that now we have permission to fetch and push information from our GitHub repository

A passionate computer technology engineer and Unity developer that is always looking to grow in every aspect of life :).