The repository is a room, container, or place where we can store things. Github is the platform that provides this facility of the repository. The Github platform allows us to store or upload our projects on it. We can create repositories with proper names and can store our project. Github repositories are shareable so that you can share them with anyone. Also, you can make it private.
Github allows us to save our whole project into a repository. Sometimes we need to make changes in existing files so that GitHub provides us with GitHub desktop software. We can commit the changes using the local GitHub repo or the command line to commit the changes.
Sometimes you have to undo the committed changes in the repo, then using shell commands; the user can undo or delete the changes.