# 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
```
