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

Git and Github

Git is a distributed version control system that allows developers to track changes, collaborate, and recover code efficiently. GitHub is a web-based platform that enhances Git's capabilities by providing a collaborative environment for sharing code and contributing to projects. The document also outlines steps for creating a GitHub profile and installing Git.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
8 views

Git and Github

Git is a distributed version control system that allows developers to track changes, collaborate, and recover code efficiently. GitHub is a web-based platform that enhances Git's capabilities by providing a collaborative environment for sharing code and contributing to projects. The document also outlines steps for creating a GitHub profile and installing Git.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 22

GIT AND GITHUB

What is Git?

 Version Control System : Git is a version control system that allows you
to track changes to your code over time. It's like a time machine for your
projects, enabling you to revert to previous versions, compare changes,
and collaborate with others seamlessly.
 Distributed Nature : Git is a distributed version control system,
meaning each developer has a complete copy of the project's history on
their machine. This facilitates offline work and enables independent
development, making it a very flexible tool.
Why Use Git?

 Track Changes
Git allows you to track every modification made to your project's code,
making it easier to identify the source of bugs and revert to previous working
states.
 Collaboration
Git facilitates collaborative development by allowing multiple people to work
on the same project simultaneously without stepping on each other's toes.
 Backups & Recovery
Git provides a reliable backup system for your projects. You can easily restore
any version of your codebase, even if your local copy is lost or corrupted.
 Code History
Git creates a complete history of your project, allowing you to understand the
evolution of your code and learn from past mistakes.
What is GitHub?

 Version Control
GitHub is a web-based platform that provides version control for your code
projects. Think of it like a time machine for your code, allowing you to track
changes, revert to previous versions, and collaborate with others on your
project.
 Collaboration Hub
Beyond version control, GitHub is a social hub for developers. It provides a
space to share your code, collaborate on projects, find inspiration, and
connect with other developers worldwide.
Why Use GitHub?

 Backups and Recovery


GitHub acts as a secure backup for your code, ensuring that your project is
safe even if your local machine crashes. It allows you to recover any lost or
corrupted files.
 Collaboration and Teamwork
GitHub facilitates collaboration among developers. Multiple people can work
on the same codebase simultaneously, track each other's changes, and
merge their work efficiently.
 Open Source Contribution
GitHub empowers you to contribute to open-source projects, collaborate with
other developers, and learn from their work. This is a valuable way to build
your portfolio and gain experience.
Creating a GitHub Profile

 Step 1:
Go to https://github.com in a web browser, and then
select Sign up
 Step 2:
Enter your email address.
 Step 3: Create a password for your new GitHub account,
and Enter a username, too. Next, choose whether you want
to receive updates and announcements via email, and then
select Continue.
 Step 4:

Verify your account by solving a puzzle.


Select the Start Puzzle button to do
so, and then follow the prompts.
 Step 5:

After you verify your account, select


the Create account button.
 Step 6:
Next, GitHub sends a launch code to your email
address. Type that launch code in the Enter
code dialog, and then press Enter.
 Step 7: Entering the code will automatically take
you to the welcome page. Select your preferences
and click Continue.
Step 8: Select the free plan.
 Step 9: GitHub opens a personalized page in your
browser.
Create a Repository
Git Installation
 Install git : https://git-scm.com/downloads
 Open Command Prompt: Type git version
Configuring Git
 Open Git Bash
 Give commands –
1. git config --global user.name “[firstname
lastname]”
2. git config --global user.email “[valid-email]”

You might also like