Linking your Unity Project to your Online Repository with Git

You can see the path on both the command prompt and the window header.
EXAMPLE:User@Desktop-XXXX MINGW64
$cd c:
User@Desktop-XXXX MINGW64 /c
$cd "unity projects" <--replace folder names with your own.
User@Desktop-XXXX MINGW64 /c/Unity Projects
$cd "new unity project"
User@Desktop-XXXX MINGW64 /c/Unity Projects/New Unity Project
$
EXAMPLE:User@Desktop-XXXX MINGW64 /c/Unity Projects/New Unity Project
$git init
Initialized empty Git repository in C:/Unity Projects/New Unity Project (main)
EXAMPLE:User@Desktop-XXXX MINGW64 /c/Unity Projects/New Unity Project (main)
$git remote add origin https://github.com/UserName/ProjectName
User@Desktop-XXXX MINGW64 /c/Unity Projects/New Unity Project (main)
$
EXAMPLE:User@Desktop-XXXX MINGW64 /c/Unity Projects/New Unity Project (main)
$git remote -v
origin https://github.com/UserName/ProjectName.git (fetch)
origin https://github.com/UserName/ProjectName.git (push)

Experienced digital artist, Unity game developer & coder with a knack for problem solving and a passion for video games.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store