Creating Git Repo
Tags: beginners, tutorial, python, django
Published: 2021-03-13 18:43:53

Now lets start with Creating A Git Repo

Always start with your git initialize. I for the life of me cannot remember all the git command. I watch a lot of git tutorial or even have multiple cheat sheet in my arsenals but hack I guess its hard for me to understand the whole process. However my savior had been github desktop. Unless other git provider can make such installable app, I guess I will be sticking with github for the longest of time.

lets start with Github then.

##Start your new github project.

Create your [new Github project](https://github.com/new).

I configured my project as below

![New Github Project Configuration](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/edkvv5kwqbdt5x6poixi.png)
 
when creating the new project repo, I would always append the project with "*_django*". This helps me to differentiate if currently I am working with a Django project or a Svelte project.

I made the Project Public so that I can share the repo with you guys but you may choose to change it to Private so that only you could make changes.

Add a readme file is not mandatory, but it can help in the long run by making documentation of the project later on.

always add a .gitignore, maybe for a python project its not really that important since its wont effect the whole upload git since the file is usually small but just put it there for ease sake. If let say you are working with a Node project or sort please please please add them, if not damn how cluttered your github will be with your node_module file

License its not really an issue per se if you are making this project for purpose of private individual project... but if the repo is public Please add one for completeness sake and also making sure that you are protected if and when someone is using your repo.

once you done with setting your repo click on create repo

![Github Repo Created](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/skv647s2kiqqoh7fkjwy.png)

As you can see on the top left of the page, theres a button name "Set up in Desktop". Now click that button.

On your githb desktop app, you will be prompted with 

![Github Desktop Prompt](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/n88w7zucj6i9r762gop4.png)

Click on the button clone.

On a side note, I totally prefer if the GitHub desktop have a dark mode but well beggars cant be choosers I guess.
 
now your github desktop will show something like this...

![Github Desktop Cloned](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9uztsrm6974qio48d0cl.png)

since I had configured my github desktop to open with Visual Studio Code, you can see a button on the right side showing 'Open in Visual Studio Code. It might defer based on your setting. Now click on the button or on Windows PC click "Ctrl"+"Shift"+A.

this will open up your code editor of choice.

![VS Code Window](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/pbj63v2a43pf7dbtplzg.png)

mine looks like this.

on the left side you could see an Explorer Side Bar. This bar can be close using "CTRL"+B. or clicking on the stack file icon on the left. Using key shortcut will improve your productivity but each their own.

As you can see now from the page, you will already have 3 files, this 3 files are the file you have included during creation of the Git repo at Github page.

now open your terminal to start developing.

you could either click "CTRL"+` or clicking new terminal in the terminal tab

![VSC terminal tab](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4yx3fzr26bl5ym6ef7p1.png)


now a terminal window will open at the bottom of your VS Code

![VSC terminal](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zsudnsh8jcs7axbq1oc1.png)

from here on out if I say terminal it means working from the terminal display located at the bottom of VS Code.

I guess this had been a long post just creating a repo to getting your terminal open in VS Code. We will continue with the next post shortly.