Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Git and GitHub

Git and GitHub

Speaker: Ifeanyi Iheagwara

Git is a version control tool (software) to track the changes in the source code. GitHub is a web-based cloud service to host your source code(Git repositories). It is a centralized system.

Git doesn't require GitHub but GitHub requires Git. In this session, you'll learn how to do the following:

✅ What is Git and GitHub?
✅ GitHub Terminologies
✅ Project workflow and collaboration using GitHub
✅ GitHub README and Pages

You can find me on Github: https://github.com/Bennykillua

Ifeanyi Benny Iheagwara

February 20, 2022
Tweet

More Decks by Ifeanyi Benny Iheagwara

Other Decks in Technology

Transcript

  1. Speaker Profile v Ifeanyi Iheagwara ➢ Data Analyst at UrBizEdge

    ➢ Technical writer Bennykillua Bennykillua
  2. Outline • What is Git and GitHub? • Github terminologies

    • Project workflow and collaboration using GitHub • GitHub README and Pages
  3. What is Git? • Distributed (everyone has a copy) •

    Collaboration (everyone can make changes) • Asynchronous (snapshot of the projects at various point in time) • Open-source Version control (organized historical management) • Local
  4. Version Control • Store (retain backus) • Restore (revert to

    a pervious versions) • Compare (shows chnages) • Collaboration (everyone can make changes) • Branch
  5. Benefits Safe Private and public Powerful version control tool Community

    Support branch development Capable of handling large project Speed and simplicity Collaboration
  6. Github terminologies Repository Master Branch Checkout Commit Push and Pull

    Pull request Merge Clone Fork 10 9 8 7 6 5 4 3 2 1
  7. Repository (repo) • Folder for your project • Hold the

    file and its history The online hosting service.
  8. Master • Primary branch of the repo. • All commits

    and changes are on the master branch.
  9. Branch • Parallel version of a repo. • Doesn’t affect

    the master branch • Merge this branch to master when you want to publish
  10. Push and Pull • Push: moving changes from Local machine

    into the repo • Pull: receiving changes from Github
  11. Pull request (PR) • After making changes, you make a

    PR so the repo maintainer can review your commits and accept. • Accepting the changes to the master
  12. Project workflow and collaboration using GitHub Issue raised (could be

    a bug, typo or contribution) 1 Create a branch to address issue 2 Add commits 3 Pull request 4 Review changes and get feedback 5 Merge changes 6
  13. More features of GitHub Project boards 1 Insights 2 Special

    files: contributing.md, issue_template.md, Readme 3 GitHub Actions 4
  14. Create a Github account 1 Create a repo: username.github. io

    2 Open your terminal and clone the repo 3 Add an index.html file 4 Making a GitHub Pages
  15. Create a Github account 1 Create a new repo: username

    2 Edit the READMe: Knowledge of markdown and HTML 3 Commit 4 Making a GitHub README