GIT AND GITHUBppt
GIT AND GITHUBppt
Presentation Title 2
20XX
• What is GIT
• GIT Directory Structure & State Operation
• GIT Commits
• GIT most Common Commands
• What is GITHUB
• NEED OF GITHUB
• GITHUB ACCOUNT Creation
• How We create a GITHUB Repository
• Basic GITHUB Commands
Presentation Title 4
What is GIT
20XX
• Created by Linus Torvalds in 2005 for the Linux kernel, Git allows multiple developers to collaborate
on projects efficiently by enabling them to work on their own local copies of a repository, which
includes the entire history of changes.
Presentation Title 5
GIT Directory Structure
20XX
•.git Directory
•objects/ Folder
•refs/ Folder
•Subdirectories include:
•heads/: Stores branches.
•tags/: Stores tags.
•remotes/: Contains references to remote branches.
•config File
•HEAD File
•index File
•logs/ Folder
•hooks/ Folder
Presentation Title 6
GIT COMMITS
20XX
Presentation Title 7
20XX
1.git init
2.git clone
3.git add
4.git commit
5.git status
6.git push
7.git pull
8.git branch
9.git checkout
10.git merge
11.git log
Presentation Title 8
12.git remote -v
What is GITHUB
20XX
GitHub is a web-based platform designed for version control and collaboration among
software developers. It allows users to store, manage, and share code repositories, leveraging
Git, the underlying version control system created by Linus Torvalds.
GitHub is a web-based platform that allows developers to host, share, and collaborate on code. It
uses Git, a version control system that tracks changes in files, making it easier for multiple people
to work on projects simultaneously. GitHub provides features like issue tracking, project
management tools, and a social network for developers, enabling them to contribute to open-
source projects, manage their own repositories, and collaborate with others. It's widely used in
both individual and team projects across various programming languages.
Presentation Title 9
Needs of GITHUB
20XX
• Version Control: GitHub allows users to track changes in their code over time, making it easy to revert to
previous versions and understand the history of a project.
• Collaboration: Multiple developers can work on the same project simultaneously, with features for merging
changes and resolving conflicts.
• Code Sharing: Users can easily share their code with others, whether for collaboration or open-source
contributions.
• Project Management: GitHub provides tools like issues, project boards, and milestones to help teams
organize and prioritize their work.
• Documentation: Developers can create and maintain documentation directly alongside their code using
README files and wikis.
• Community Engagement: GitHub enables users to contribute to open-source projects, engage with other
developers, and build a network.
• Continuous Integration/Continuous Deployment (CI/CD): GitHub integrates with various CI/CD tools,
automating testing and deployment processes.
• Security Features: GitHub offers security scanning, dependency management, and access controls to help
10
protect code and sensitive information.
HOW WE CREATE A
ACCOUT IN GITHUB
STEP BY STEP GUIDE
Open https://github.com/join in a web browser.
Presentation Title 12
2.Fill in the following information:
Username
This is a unique, personal username for yourself and can be
whatever you like, as long as it is not already taken by someone
else on GitHub.com.
It will be visible to the public.
If you do not know what to use, just add “NIH” to the end of
your NIH account name (e.g. usernameXYZ).
Email address
Use your NIH email address, ideally the [email protected]
format.
Password
Your password needs to be unique to GitHub.com.
Please choose a secure, memorable password.
As you type your password into the field, it will be obscured for
security reasons.
3.Once you have an entered an available username, valid email address,
and acceptable password, click on the “Create account” button.
4.The page will verify that you are a human and not a robot.
5.Next, GitHub will send you an email to the address you registered. You
must go to your email and validate it as instructed.
Presentation Title 13
6.Open the email with a subject line stating “[EXTERNAL] 🚀 Your GitHub launch code”
Presentation Title 14
7.Provide the code in the GitHub.com prompt from earlier.
8.GitHub would now like to know a little more about you as a user. Please select the information that
best describes you and select “Complete Setup” at the bottom of the page or use the “Skip
personalization” option.
Presentation Title 15
How We create a GITHUB Repository
In the upper-right corner of any page, select , Type a short, memorable name for your repository. For example,
then click New repository. "hello-world".