Basic steps to pushing your codes to GitHub.

let’s see how to communicate with our remote repository by using the “VS-Code” interface.

The first thing to do is to sign up and get a GitHub account or BitBucket, whichever one you fancy 😉.

Install git locally.

So let’s assume we have gone through the first requirements, next up create a repository on your git hub account, for practice sake let's call this git_tutorial.

  1. Click the + sign
  2. Click create repository
  1. Earlier we agreed to call it git_tutorial😁.
  2. Give your repository a beautiful description.
  3. Let's go public for now, till we have sensitive information we go private.
  4. check <Add a README file>, the description becomes the README file.

One step at a time. now let us clone this repository, yeaaa just copy the URL.

GitHub clone repository

Open your vs-code, hopefully, you have already started using vs-code

Right?

okkkk….

  1. Click on the View tab there, select “command pallet”.
  2. Click on Git:clone, paste the “URL” from the GitHub.
  3. Select a folder where the repository stays.

Next up, we have our read me file showing, we need to create a new branch so that we don’t mess up the master/main branch.

when you click on that icon up there it shows you

  • +create a new branch
  • main
  1. Click on create a new branch and create a new branch name.

It automatically checks out to the new branch, but you can still checkout to our branch with that same icon.

It’s time to add our files and commit to our local repository,

  1. Click on that branch like the icon to add files and write a commit message.
  2. Commit message should be in this format e.g “fix the login page”.

Now, let us push to our remote repository,

  1. Click there, the red circled one.
  2. Go to your git hub account.

Request a pull and write a good description.

let’s stop here for now and continue later on.

A quick recap with a picture;

  1. clone the remote repository to your local
  2. create a new branch
  3. add files and commit to the local repo
  4. push branch to the remote repo.

The above is very basic and useful, feel free to send any error you encountered to me.

thank you all………

--

--

--

Data scientist with machine learning || Front end developer. learning everyday and will be writing more on what took me time to learn and concepts that helped.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Rust JVM Post 0.5

Creating triggers for n8n workflows using polling ⏲

understanding github for dummies

A Negative Rant about Windows 10

Will Your Technologies Support Your New Website Launch or A New Marketing Campaign?

Will Your Technologies Support Your New Website Launch or A New Marketing Campaign?

We are Fluttered.

Existential types in Scala

How to add geckodriver to right path to use Selenium on Firefox? — MacOS

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Onyinye Iloanugo

Onyinye Iloanugo

Data scientist with machine learning || Front end developer. learning everyday and will be writing more on what took me time to learn and concepts that helped.

More from Medium

Learning about GIT

From this past week, I was learning to work with Github.

Building software should work like sales - you get commission for what you build

Using tig as a frontend for git