# Git repository

Download GitTools:&#x20;

{% embed url="<https://github.com/internetwache/GitTools>" %}

***

## Dump Repository

We found a git directory , so we use a tool to dump the the git repository

```bash
gitdumper.sh http://blog-dev.travel.htb/.git/ ~/htb/travel/repo
```

## Extract Repository

We downloaded the repository, we also need to extract it using extractor.sh the command is given below:

```bash
extractor.sh ~/htb/travel/repo ~/htb/travel/repo-extract
```

## Git enumerating

After you dumped the repo, you can also use git commands to get more information:

```
git log
git diff <branch>
cat ./config
```


---

# 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://notes.incendium.rocks/pentesting-notes/web/git-repository.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.
