Working with Repositories and Commits in GitHub.
Tags: github, git, watercooler, productivity
Published: 2021-04-12 07:49:44

In this article we are to cover more in depth about how to create repositories in GitHub, how to commit to the repository. Firstly we will start by doing the above on the browser. In order for one to do the above actions, you will need a GitHub account, If you do not have an account go ahead and create one [HERE](https://github.com/).  
Also read about: [Git and GitHub](https://larymak.hashnode.dev/what-is-git-and-github)  
First time at GitHub this is the page you will see: 
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1616998779905/LOBXFUXfb.png)
After creating an account you will be logged in and you should see a page like this: 
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1616998954986/qX3wNFCtR.png)
This page give you the summary of you git status, number of repositories, overviews, projects etc..  
Now its time to create the repository, But wait..  
#### What is a Repository?  
In simple terms we can say a repository is like a room, place, container where something is deposited or stored and maintained in an organized manner.  
Now that we know what a repository is let's go ahead and create one. If it's your first time creating an account you should see a create new repository on home page, but in my case since I have an account it's going to be different.  
First I will select the + sign and then choose create new repository, like below:
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1616999636324/3pnrihhxO.png)  
After selecting that option a new window will display asking me to give the repository name, description (which is optional) and whether to leave it public or set to private and finally initialize with a README.md file.  
Also check out: [How to write a Good README file](https://larymak.hashnode.dev/how-to-write-a-good-readme-file) 
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1617000191054/9gorDLw5r.png)
Fill in the details and you should have something like this:
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1617000419053/wcvXnnAmA.png)
In order for us to create a commit we will need to add a file first: Lets do that..
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1617000693056/cEgBd4W-T.png) 
Now go ahead and give it a name and add details in the file:  
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1617000913008/UKwGzgpJS.png)
Now since we have added files to our repository it's time we go ahead and commit the changes, scroll to the bottom of the page and you will see the Commit button.
But wait first !!
#### What is a git Commit?
A commit is a command used to save your your changes to the repository safely.  
![git.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1617001466680/sJXdA1ELH.png)
By clicking the Commit button, the files are saved to our created repository earlier like below: 
![Capture.PNG](https://cdn.hashnode.com/res/hashnode/image/upload/v1617001458300/8P5LmELY5.png)
### Conclusion  
In this article we have seen how we can be able to: 
-  create a GitHub account,
-  create a file in GitHub browser 
-  Add items to the file 
- Create our first commit  

*Stay tuned for the next article in the series*   

Like my work: 
[![ko-fi](https://ko-fi.com/img/githubbutton_sm.svg)](https://ko-fi.com/V7R03ZL69)
 
If You have read this far I really appreciate:  

Check out my other Blogs too:  
- [Useful Resources for Programmers and Web Developers](https://larymak.hashnode.dev/useful-resources-for-programmers-and-web-developers)
- [Key Differences Between A Website and Web Application](https://larymak.hashnode.dev/key-differences-between-a-website-and-web-application)
- [Know The Difference Between Coding and Programming](https://larymak.hashnode.dev/know-the-difference-between-coding-and-programming)
- [Best Visual Studio Code Extensions For Web Developers](https://larymak.hashnode.dev/7-best-visual-studio-code-extensions-every-web-developer-should-have)  

Connect With me at [Twitter](https://twitter.com/larymak1) | [Insta](https://www.instagram.com/nextgencoders/) | [YouTube](https://www.youtube.com/channel/UCrT1ARRZfLOuf6nc_97eXEg) | [LinkedIn](https://www.linkedin.com/in/hillary-nyakundi-3a64b11ab/)  | [GitHub](https://github.com/larymak)

Do share your valuable opinion, I appreciate your honest feedback!   

Enjoy Coding ❤