0% found this document useful (0 votes)
27 views

Git & Github

Uploaded by

Sammy Ay-man
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
27 views

Git & Github

Uploaded by

Sammy Ay-man
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

7/22/24, 12:38 PM Git & Github

Git and Github


What is GIT ?
git is the most popular version control system, it records the changes made to our code over time in
a special D.S called repository and by looling at the project history we can see who made and what
changes and it can be revert easily in case of any accedental failure ,with version control system we
can track histroy and work together
it fall into two categories :

A-Centerlized system : here were all team members connect to a central server to get the latest copy
of code and to share the changes with others but only flowed in this system is the single point of
failure , if the server goes ofline then theam can't collaborate or save snapshots of thier project untinl
the server back online.

B-Distributed system : Unlike Centerlized system the team every team member can has a copy of
the project with its history on their machine so they can save the snapshot or checkpoint locally and
also it can be synchronize the work directory with other even if centeral server is ofline .

Why git ? :

1. Free
2. Open source
3. Super Fast
4. Scalable
5. Easy Branching or Merging

Git Basic Commnds

git init to create a repository.


git clone to copy a remote repository.
git add to stage a file.
git commit to snapshot their code.
git merge to combine branches.
git rebase to simplify their commit history.
git fetch and git pull to update their repositories.
git push to share their code with others .
git squash and git clean for housekeeping.

For Git, the direct competition includes various version control tools such as the following:

Subversion (SVN).
Helix Core by Perforce.
Mercurial.
PVCS Version Manager.

file:///C:/Users/Ayman/Desktop/Git/demo.html 1/2
7/22/24, 12:38 PM Git & Github

What is GitHub?
GitHub is a web-based hosting service for Git repositories. It makes Git more user-friendly and also
provides a platform for developers to share code with others.

In addition, GitHub makes it easy for others to contribute to projects. It also has a robust API that
allows developers to integrate GitHub into their own applications and workflows.

GitHub offers both a paid and free subscription. With a free subscription, users can create public
repositories. Public repositories are visible to anyone and can be cloned or forked by anyone.

# A fork is a separate copy of the Git repository that was made . A clone, in contrast, creates a linked
copy that will continue to synchronize with the target repository.) A paid subscription is required to
create private repositories. Private repositories are only visible to users who have been given access
by the repository owner.

In contrast, GitHub competes with other online SaaS vendors that specialize in GitOps in the cloud,
including the following:

GitLab.
Bitbucket from Atlassian.
AWS CodeCommit.
Azure DevOps Repos.
SourceForge
RhodeCode.

Comparsion between GIT & GITHUN

file:///C:/Users/Ayman/Desktop/Git/demo.html 2/2

You might also like