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.
I configured my project as below
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
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
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...
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.
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
now a terminal window will open at the bottom of your VS Code
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.
Top comments (0)