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

Git Collaborative With GitHub

Git Collaborative With GitHub

In this workshop, you will learn the basics of Git and GitHub, two essential tools for software development. You will learn how to:

- What is git and GitHub
- Set up a Git repository
- Add, commit, and push files to a repository
- Create and merge branches
- Use pull requests to collaborate on code
- Work with GitHub features like issues and pull requests

The workshop will be hands-on, and you will use a follow-up repository to practice your skills. The repository also includes games that will help you learn about Git and GitHub in a fun way.

This workshop is designed for beginners, so no prior experience with Git or GitHub is required.

This workshop was arranged for the participants of Microsoft ADC's Game of Learners Program (https://www.microsoft.com/MEA/Gameoflearners/) Season 4. It is meant to help them learn about Git, and GitHub, and how to maximize the use of both.

Practice repo Link: https://github.com/Cli4d/Git-Collaborative-With-GitHub

Avatar for Clifford Ouma

Clifford Ouma

March 08, 2023
Tweet

More Decks by Clifford Ouma

Other Decks in Programming

Transcript

  1. Clifford Ouma Twitter: @clifford_ouma Postman Student Leader GitHub Campus Expert

    Microsoft Learn Student Ambassador Moi University LinkedIn: Clifford Ouma
  2. Is a version control system Works like a time machine.

    Docoments changes and allows you to jump back and forth Is a command-line tool used to manage files and collaborate with others on projects. 2. What is Git
  3. Github is web-based platform that provides a graphical interface for

    using Git. Collaborative platform Provides many features such as version control, issue tracking, CI/CD and project management Widely used to manage their projects and collaborate with others. 2. What is GitHub
  4. Commits are checkpoints Branches are alternative versions of our code

    Merging is synchronizing branches 2. De-jargoning
  5. LET'S SETUP THINGS Installing git on your machine Configuration variables

    (email, username and ignore file) Initializing a git project (git init)
  6. git config --global user.name “name secondName" git config --global user.email

    "example@mail.com" //Setting default editor as Visual Studio Code git config --global core.editor "code --wait" Configuration Variables
  7. git init git clone <url> git remote git remote add

    <name> <git-url> git rename <old-name> <new-name> git remote remove <name> git remote show <name>
  8. git branch git branch -a git branch -d <branch-name> git

    branch -m <old-name> <new-name> git checkout <branch-name> git checkout -b <new-branch-name>