Push Your First Commit to GitHub

Abijith K AAbijith K A
1 min read

After creating commits in our local system, it's time to push our local commits to the server (GitHub).

First, you should create a repository on GitHub to push your local commits or versions. After creating a repository on the server side, follow these steps:

  1. Create a remote for pushing the files from local system to server.

    A remote repository in Git, also called a remote, is a Git repository that's hosted on the Internet or another network.

git remote add hub https://github.com/abijithka02/TinkerHub-Workshop.git

In the above command, after 'git remote add', 'hub' is the name given to the remote. You can choose any name you like. Following that is the link to the repository we created (HTTPS).

  1. After that Push the commit
git push hub master

Here hub is the remote and master is the branch.

Now you are successfully pushed your version to the server. Hope you all doing the best. Happy Learning.

0
Subscribe to my newsletter

Read articles from Abijith K A directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Abijith K A
Abijith K A