In this article, we will learn how to publish or upload project in our GitHub account. GIT | An Introduction to Github this article will give you very detailed information about what is GitHub and how to setup GitHub account. We will cover a brief introduction about Github and then we will step by step learn about How to create and manage repository in our GitHub account.
Introduction to GitHub: Git is an open-source version control system. It means that whenever a developer develops some project (like an app) or something, he/she constantly update it catering to the demands of users, technology and whatsoever it maybe. Version control systems keep these revisions straight, storing the modifications in a central repository. It allow developers to easily collaborate, as they can download a new version of the software, make changes, and upload the newest revision. Every developer can see these new changes, download them, and contribute.
Relation between git and GitHub: Github is web-based version control system and collaboration platform for developers. It is the center around which all things involving git revolves.
- Git vs Github: There is a common misconception that Git and Github are same. Git is used to storing the source code for a project and track the complete history of all changes to that code, while GitHub is a cloud-based platform built around the Git tool. The major difference is that git is software that a developer can locally install on it machine to manage source code while GitHub is an online service to which developers who use Git can connect and upload or download resources. Github is hosting service for git repositories.
Below are the sample project files which we want to upload:
Creating Repository step by step without command:
- step 1: After successfully setting up GitHub account login to your account. You will see the screen as below.
- step 2: Click on the new repository option.
- Step 3: After clicking new repository option, we will have to initialize some things like, naming our project, choosing the visibility etc. After performing these steps click Create Repository button.
- Step 4: After clicking the button, we will be directed to below page. Right now the only file we have is a readme file.
- Step 5: Now click on the “Upload files” button.
- Step 5: Follow the steps mentioned in the Picture below and click “commit changes”
- step 6: Now you will see that all of our files uploaded in our github
Hosting GitHub repository: GitHub Pages are designed to host your personal, organization, or project pages from a GitHub repository. As we already have the repository, we only have to activate our pages.
- Go to settings and scroll down to github pages section. Change disable option to master branch option. Now github will do some behind the scenes work and going to publish the repository.
Now we are done and our project can be accessed worldwide.
Note: We can also add an existing project to GitHub by using the command line.
Git- Setting up a Repository already gives an idea about how to set up a repository using git. You can go through this article too. However, GitHub provides a very easy option to do all this without using the command line as discussed above.
- What is a GIT Repository?
- Getting changes from a Git Repository
- Git- Setting up a Repository
- Setup GitLab Repository On Windows 10
- GIT | An Introduction to Github
- An Ultimate Guide to Git and Github
- List of useful Github Commands
- Bitbucket vs GitHub vs GitLab
- How to Upload a Project on Github?
- Top 10 Useful GitHub Repos That Every Developer Should Follow
- How to Deploy Your React Websites on GitHub?
- Using Bitbucket as an extension to GitHub capabilities
- What is GitHub Student Developer Pack and How to Get it?
- 5 GitHub Repositories that Every New Developer Must Follow
- Downloading gists from Github made simple
- How to Upload Project on GitHub from Android Studio?
- Using GitHub to host a free static website
- Fetch top 10 starred repositories of user on GitHub | Python
- Making your first Open Source Pull Request | Github
- Creating a PortScanner in C
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to email@example.com. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.