Working With Git: Part 1

Maxx Srinivasan
3 min readMay 6, 2021

When developing software as part of a multi-person team, sharing your work is crucial. Thankfully, there are tools we can use as developers to easily store and share projects with our teammates. We can use Git to set up repositories and version control our projects that can be accessed remotely by anyone we wish. In part 1 of this series of articles, I will be demonstrating the basic commands for navigating the Git command line editor to access your projects in Unity.

1: You will need to download and install the Git program from https://git-scm.com/downloads.

2: Once you have the program open, you be ready to begin entering commands. With this command prompt, you can navigate anywhere on your computer with a few simple commands. To begin navigation, use the “cd” command to indicate you wish to navigate to a directory. To start, we will only be navigating to directories adjacent to our current location. In this case, we will navigate to one of our drives followed by the unity projects folder within.

You will notice that I was able to autofill my Unity C folder once I had typed just a couple letter. You can do this by pressing “Tab” once you have typed letters relevant to the directory you are in. You can then use the command “ls” to list all the files within your current directory. You also noticed that spaces are not represented by just a space. If you are typing out your destination, you must put a \ before any space.

3: Finally, if you find that you have navigated to the wrong folder or have otherwise lost your way, there are a couple commands and tricks you can use to find your way back home. If you want to return to the previous directory, you can use the “cd -” command. If you want to start over, you can use the “cd /” command to return to the root directory.

Now that you know how to navigate your Git command editor, you can start telling it exactly where you want to go in one step. Remember, all you are doing is navigating your computers directories.

Thanks for checking out Part 1 of my “Working with Git” series! Stay tuned for Part 2 tomorrow.

--

--

Maxx Srinivasan

Unity Developer currently honing my skills with GameDevHQ while designing levels and systems for my co-founded start up, Sneaky Dagger Games.