Member-only story
How to push a repo to GitHub?
Version control comes in handy when there are more than one developers working on the same project and even when you want to save your work on a cloud in case your computer decides to take off.
Without diving deep into the textbook knowledge, let us setup and push our first repo on GitHub.
Go to the official website of Git here and download it for your operating system. Finish setup by connecting it to the version control of your choice.
Open command prompt and navigate to the directory you would like to push to the version control. In my case, it is the cart_calculator Flutter project from my Flutter — Cart Calculator series.
Turn the repo into a git repo by running the git init
command. A few extra files will be generated.
Now check the status of the repo by running the git status
command. All the files you see in red and not yet versioned which means they local right now and needs to pushed the version control.
As soon as directory is converted into a git repo, you can see a branch name which asterisk on top when you open on vs code. This shows that the current branch is master(sometimes main)…