Berra Sarı
3 min readJul 29, 2023

Step-by-Step guide to Committing to Github

GitHub is an incredibly powerful platform when it comes to tracking and hosting source code. Writing code on your own and committing it to a repository is an essential part of the workflow for any software project. With the help of this guide, you can understand the basics of committing to Github quickly and easily.

Table of Contents:

  1. What is Github?
  2. How to get started with committing
  3. How to commit changes in a repository
  4. How to push changes to Github
  5. How to track commits
  6. FAQ

What is Github?

Github is a popular web-based version control platform. It is the most used host for open source projects and a great place to store and collaborate on code. It allows developers to work on projects together in a shared environment. It also allows users to see the commit history of changes made to the code, making it easier to maintain and debug.

How to get started with committing

Before you can commit code to Github, you need to sign up for an account. Once you’ve done this, you will be able to create repositories and make commits.

You will also need to download and install the Github Desktop application, or use the command line interface. This is the easiest way to get started with committing code to Github.

How to commit changes in a repository

Once you have the Github software installed, you will be able to make commits to the repository. First, you will need to create a new file or edit an existing file.

Once you’ve made your changes, you will need to commit them to the repository. This can be done by entering a commit message. This message should be descriptive and include the changes you’ve made.

The next step is to “push” the changes to the repository. This will update the repository and make the changes visible to collaborators.

How to push changes to Github

Once you’ve made your changes in the repository, you will need to push them to Github. To do this, you will need to open the Github application. Then, you will need to click on the “push” button. This will push your changes to the repository.

How to track commits

Once you’ve pushed changes to Github, you will be able to track them. To do this, you will need to open the repository in the Github application. Then, you will be able to view the commit history. This will show you the changes that have been made to the repository.

FAQ How do I create a new branch?

Creating a new branch in Github can be done by clicking on the repository name, then clicking on the “Branch” tab, and entering a new branch name.

What is the difference between a pull request and a commit?

A commit is a set of changes to the repository. While a pull request is a request for someone else to review and accept the changes.

How do I share my repository?

Sharing a repository in Github is easy. All you need to do is go to the repository page and click on the “Share” button. This will give you a link that you can send to anyone so that they can access the repository.

How can I see the history of my commits?

You can view the commit history of a repository by opening the repository in the Github application, and then clicking on the “History” tab. This will show you the list of commits made to the repository.

How can I undo a commit?

To undo a commit, you will need to open the repository in the Github application. Then, click on the “History” tab and select the commit you wish to undo. Finally, click on the “Undo” button. This will undo the commit and remove the changes from the repository.

Related Links

Create a pull request

Clone a repository

Install Github Desktop

No responses yet