Setting up Git for Unity

Part of learning to code has led me to use version control by use of Git which is important for source code management. I installed git from

Git Website

once installed I located my project browser by right clicking on my unity hub project to show in folder :

once the folder is open you can right click and select “Git Bash Here”

to start the process, you can type “git init” to create a local repository.

As I have an account on github I cna now link it to the project by creating a repository:

I have named this “version control examples” and as we are working in unity we will want to add a “Unity gitignore” file

Once the repository is made on the main code page for it, you can copy the link from here:

then within our git bash environment we will type the command:

git remote add origin “URL”

this completes the linking of our project to git

--

--

--

Unity Developer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Merge Intervals

CS371p Spring 2022: David Klingler: Final Entry

“Get hired as Front End developer in 2022”

How to reach the next level? Take part in IT events this July 2019 [overview]

AN INTRODUCTION TO WEB DESIGN USING HTML CODES

Gamepad API to control parts of an SVG

Migrate your VM’s from AWS to Azure using xmigrate

Rails. Polymorphic Associations.

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
George Asiedu

George Asiedu

Unity Developer

More from Medium

How to Use Git with Unity

Git Good with Unity

GitHub connecting to Unity

Initializing A Git Repository in Unity