# Git and GitHub

![](/files/LxH0rtFhzkAEpsQfns5x)

## How Git & Github Works

Git is an open source and free distributed version control system (VCS) used for software development.

![](/files/a09sOHNyBcdqCjDGymbL)

## How To Pull Request

![](/files/q4p5yxcZJDVaLsP1jHZu)

## What is a Git Branch?

A Git branch is essentially an independent line of development. You can take advantage of branching when working on new features or bug fixes because it isolates your work from that of other team members.

![](/files/x367tJK2joIkL0FZefUw)

Different branches can be merged into any one branch as long as they belong to the same repository. The diagram below illustrates how development can take place in parallel using branches:

&#x20;

![](/files/Wwujl9yUnyLlrfkYkNSL)

Branching enables you to isolate your work from others. Changes in the primary branch or other branches will not affect your branch, unless you decide to pull the latest changes from those branches.

It is a common practice to create a new branch for each task (i.e., a branch for bug fixing, a branch for new features, etc.). This method allows others to easily identify what changes to expect and also makes backtracking simple.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://chrysalis-1.gitbook.io/sei-ga-web-development-notes/javascript-js/git-and-github.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
