This document provides an agenda for getting started with git and GitHub. It discusses version control and how git allows tracking changes to files. It explains how to set up git locally and initialize a repository. Basic git commands like add, commit, status, and log are covered. The document also discusses branching in git and what GitHub is. It provides steps for creating a GitHub account and repository and collaborating through forking, cloning, and pull requests. Finally, it discusses the benefits of open source work.
3. ➔ Glimpse of versionless code
➔ Version control and source code management
➔ Git
➔ Usage of git in your daily programming lives.
➔ GitHub
➔ The world of open-source.
➔ Surprise at the end 🤫
Agenda
4. “Versionless” code
● No track of history
● No staging, production and development phase.
● No backups
5. What is “version control”, and why
should you care?
Version control is a system that records changes to a file or set
of files over time so that you can recall specific versions later.
For the examples in this book, you will use software source code
as the files being version controlled, though in reality you can do
this with nearly any type of file on a computer.
7. Benefits of Using Version Control
● Generate backups
● Test and experiment
● Keep a track of changes
● Collaborate and contribute
Google Developers Student Clubs
8. What is git?
Git is free and open source software for distributed
version control: tracking changes in any set of files,
usually used for coordinating work among
programmers collaboratively developing source
code during software development.
11. To configure git in your machine
1. set a name that is identifiable for credit when review
version history
>> git config --global user.name “[firstname lastname]”
2. set an email address that will be associated with each
history marker
>> git config --global user.email “[valid-email]”
12. ‘Init’ing a git repository
● A git repository is just your source code, plus some
additional git files for tracking changes.
● All of your work is done in this place.
● This repository tracks all changes made to files in
your project, building a history over time. Meaning,
if you delete the .git/ folder, then you delete your
project’s history.
13. Initiating a git repository.
1. Create a project folder.
2. Move into the newly created folder.
3. Initiate a git repository using, git init.
14. • >> git add
• >> git status
• >> git commit
• >> git log
Gearing up with git basics
Tooling up in git.
17. Why use branching?
● Using different environments for production,
staging, and development
● Make updates to existing code
18. GitHub is a website and cloud-based service
that helps developers store and manage their
code, as well as track and control changes to
their code.
What is GitHub?
20. Now, let’s set up your GitHub
● Creating your brand-new account
● Creating your first repository
● Walkthrough over access tokens and its need
● Managing your code on GitHub
21. ● Forking a repository
● “git clone”-ing a repository
● Working on new features in your local machine
● Updating the changes on your “local” repository
● Creating your first pull request(PR)
Getting started with collaborations
22. Why Open-source? And why
should you do it?
● Open source encourages innovation through collaboration.
● It allows customers to know how the code works, facilitating the development
of the most innovative software.
● It allows reuse and recycling of code, making it easier to collaborate and
achieve goals, rather than to recreate the wheel.