![]() |
VOOZH | about |
GitHub is a web-based platform built around Git that enables version control, collaboration, and project management for software development teams.
The below are key features of GitHub:
GitHub is a web-based platform that hosts Git repositories and supports collaborative software development.
In GitHub, a repository is a central place where a project’s code and related files are stored and managed.
Branches in GitHub allow developers to work on changes independently without affecting the main branch.
Pull requests allow developers to propose and review changes before merging them into the main branch.
GitHub Issues and project boards help manage tasks and track project progress.
GitHub Actions automate development workflows directly from a repository.
Go to github.com and enter the required user credentials asked on the site and then click on the SignUp for GitHub button.
To create a new repository on GitHub, follow these steps:
Upload a local Git repository to GitHub by connecting it to a remote repository and pushing the code.
git init git add .
Commit the files that you've staged in your local repository.
git commit -m "First commit"
At the top of the GitHub repository's Quick Setup page, click on the icon shown and copy the remote repository URL.
Add the remote repository URL to link your local repository with GitHub:
git remote add origin <remote-repository-URL>Verify the configured remote URL:
git remote -vPush the local repository to GitHub:
git branch -M main
git push -u origin main
Download changes from a remote repository to your local repository using:
git pullThe below table helps you to understand the difference between Git and GitHub:
Git | GitHub |
|---|---|
Git is a distributed version control system (DVCS). | GitHub is a web-based platform that hosts Git repositories |
Tracks changes made to the code by developers. | Provides tools for issues, pull requests, and code reviews. |
Works on the command-line interface (CLI). | Provides a web-based graphical interface. |
Runs on a developer’s local machine. | Acts as a remote hosting service. |
Allows committing changes, creating branches, and merging code locally. | Enables collaboration by allowing developers to pull and push code remotely. |