KEMBAR78
5 - Git and Github | PDF
0% found this document useful (0 votes)
3 views15 pages

5 - Git and Github

Git is a version control system for tracking code changes, while GitHub is a cloud-based platform for hosting Git repositories and collaborating on projects. Key components of GitHub include repositories, branches, commits, pull requests, and forks, which facilitate code management and collaboration. Essential Git commands include setting up Git, cloning repositories, and pulling changes to keep local and remote repositories in sync.

Uploaded by

fatima.n.marie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views15 pages

5 - Git and Github

Git is a version control system for tracking code changes, while GitHub is a cloud-based platform for hosting Git repositories and collaborating on projects. Key components of GitHub include repositories, branches, commits, pull requests, and forks, which facilitate code management and collaboration. Essential Git commands include setting up Git, cloning repositories, and pulling changes to keep local and remote repositories in sync.

Uploaded by

fatima.n.marie
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 15

Git & GitHub

What are Git and GitHub?


Git: A version control system used to track changes in code.

GitHub: A platform for hosting Git repositories and collaborating on projects.


GitHub
GitHub is a cloud-based platform where you can store, share, and work together
with others to write code.
GitHub main components
- Repositories
- Branches
- Commits
- Pull Requests (PRs)
- Forks
Repositories
It is Where your project's files and their history are stored.

You can store code, track changes, collaborate with others, and manage pull
requests.
Branches
Developers use branches to work on features or bug fixes independently before
merging them back into the main project.
Commits
Contains changes made to the files, along with a commit message explaining why
the changes were made
Pull Requests (PRs)
It is a request to merge changes from one branch into another
Forks
It is a copy of a repository that you can modify without affecting the original
repository
Git Commands
- Set up Git on your local machine
- Clone Repositories
- Pull Changes
Git Setup

Connect vscode with github


Cloning
Cloning is the process of creating a local copy of a GitHub repository on your
computer

It allows you to work on the repository offline, make changes, and later push your
updates back to the GitHub repository
Pulling
Pulling is the process of downloading changes from the remote repository to your
local repository.

You might also like