> For the complete documentation index, see [llms.txt](https://gitbook.bergelsonlab.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gitbook.bergelsonlab.com/programming-info/computing-programming-guides/git-basics-happy-git-with-blab.md).

# Git Basics: Happy git with BLab

We'll be following the ["Happy git with R"](https://happygitwithr.com/index.html) tutorial (*the tutorial*). We've skipped, changed, and otherwise adapted a few steps from the tutorial here and there to reflect how we work with git in BLab. All these amendments are in the form of instructions on this page so please read the notes here and only then follow the linked parts of the original tutorial.

We'll mostly ignore the "with R" part of the tutorial name. Sometimes the tutorial will give you the option to do something through R. You can do both the R and non-R version if you are interested but do the non-R one first.

If you get stuck and googling for a few minutes hasn't helped, do ask a question on the Slack channel "Git Support". The staff will monitor the channel and reply to the questions. But so should you: if you know the answer or can give a suggestion, reply in the question thread. If you are not sure that your response is 100% correct - reply anyway.

## Prerequisites

* You have git, R, and RStudio installed. If not, follow the instructions [here](/programming-info/computing-programming-guides/wip-new-computer-setup.md#someone-with-admin-rights-might-be-the-user).
* You have[Set up Git and GitHub](/programming-info/computing-programming-guides/git-and-github/set-up-github.md)
* You know how to open a terminal window and change the working directory. If you don't, see&#x20;

## [Week 1 - Homework - Setup](/programming-info/computing-programming-guides/git-basics-happy-git-with-blab/week-1-homework-setup.md)

## [Week 2 - Office Hours - Basic Process](/programming-info/computing-programming-guides/git-basics-happy-git-with-blab/week-2-office-hours-basic-process.md)

## [Week 3 - Homework](/programming-info/computing-programming-guides/git-basics-happy-git-with-blab/week-3-homework.md)

## [Week 3̷4- Office Hours](/programming-info/computing-programming-guides/git-basics-happy-git-with-blab/week-3-4-office-hours.md)

##


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://gitbook.bergelsonlab.com/programming-info/computing-programming-guides/git-basics-happy-git-with-blab.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.
