Git Setup (Part 2)

Valdarix Games
4 min readMar 28, 2021
Empty repository ready to protect your code.

Yesterday we worked through all of the setup for our new Git repository hosted on GitHub and created our new project that we want to add to source control. Now it’s time to get into the down and dirty and get this thing committed. Let’s click the green “Code” button with the arrow beside it.

We have quite a bit of information here. However we are only going to concern ourselves with the https address. Lets copy that bad boy to our clip board and fire up the Git Bash that we talked about yesterday in Part 1.

Remember GitBash is a command line tool so we need to use text commands to accomplish our goals. Since the first thing we need to do is commit our code to GitHub we will use the init and remote commands to connect to our new repo. If your aren’t familiar comfortable in cmd line tools, don’t stress too much, after a while it will become second nature.

With GitBash we need to navigate to our project directory, initialize it as a Git repo, and connect it to the GitHub repo. Sounds like a lot doesn’t it? Don’t worry. A couple of commands and we will be ready to got.

--

--

Valdarix Games
Valdarix Games

Written by Valdarix Games

Turning my passion for video games and software development experience into a focus on video game development.

No responses yet