Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Table of Contents
minLevel1
maxLevel2
include
outlinefalse
indent
styledecimal
exclude
typelist
class
printablefalse

Git and GitHub

We use GitHub Classroom to provide you with the initial agent code. GitHub is acode hosting platform for version control and collaboration. You need to join the GitHub classroom and use it for developing and sharing your code, and for storing and updating all the deliverables in this project. In order to help you understand how to do that, we will introduce you to some basic readings and a tutorial to help you gain knowledge of how to use git. Git is a common tool used by many coding teams worldwide to develop code in tandem and facilitate its alignment. Getting to know git as part of this course will surely be of benefit to you in the long term.

Git

Git is a tool used by developers to manage and track changes in their code or files. Think of it like a magical filing cabinet that remembers every version of a document or project you’ve ever worked on.

  • Imagine you’re writing a book. You make changes, but then decide you liked the way it was two days ago. Git lets you go back and see what it looked like back then.

  • It tracks what changes were made, who made them, and when.

  • It’s designed to help teams work together without accidentally overwriting each other’s work. It merges everyone’s contributions intelligently.

  • While Git works locally on your computer, it also pairs with tools like GitHub to store a backup of your work online.

Key Features:

  • Version Control: Keeps track of all the changes to a file or project.

  • Branching: You can create “branches” to work on different features or ideas without messing up the main version.

  • Undo Mistakes: If something breaks, you can roll back to a previous version.

...

GitHub

GitHub is like an online home for Git projects. If Git is your magical filing cabinet, GitHub is the cloud storage where you can share that cabinet with others.

  • It’s a website where people can store, share, and back up their Git projects online.

  • It ensures your work is safe even if something happens to your local files (like your computer crashing).

  • It makes it easy for teams to work together because everyone can see the latest version of the project and contribute their own changes.

  • GitHub also adds tools for collaboration like:

    • Issues: A way to track bugs or tasks.

    • Pull Requests: When someone suggests a change, the team can review it and decide whether to include it.

    • Actions: Automate tasks like testing your code every time there’s a change.

Git Commands

Info

You can do just the basics reading, just the interactive tutorial, or both. There is also a more in-depth explanation of each command on the third page.

...