> 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

Git tips

## 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="https://1354665097-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-MYLPTPmXutfLTHzDEhx%2Fuploads%2FGE5Y93MZqpJI44Euthr2%2Fimage.png?alt=media&amp;token=7a98c69d-75e3-4eb3-a0da-67aeea72b8a2" alt="" data-size="original">
