> For the complete documentation index, see [llms.txt](https://hackerlab.gitbook.io/wiki.hackerlab.cz/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hackerlab.gitbook.io/wiki.hackerlab.cz/toolset/git-repo-and-tools.md).

# Git - Repo and Tools

## Clone

Clone repo by git, it works when the index file is not corrupted

`git clone <repo>`

You can clone the repo also by wget when all files are accessible

`wget -r http://domain/.git`

Detect changes in your local git repository

`git diff`

## Browse

Browse the git repository manually.

```
URL/.git/config
URL/.git/HEAD
URL/.git/refs/heads/master
URL/.git/objects/xx/hash # where xx is 1 first byte in hex of the hash
git cat-file -p <hash>
```

## Create repo

`git init`

copy objects into the /objects directory under first byte hash subfolder

<img src="/files/fBuzAZNWyGpmC30naoQC" alt="" data-size="original">
