> For the complete documentation index, see [llms.txt](https://docs.effective-architect.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.effective-architect.com/methods-and-tools/tools/git.md).

# git

* Git Flight Rules - use case based Git tutorial - <https://github.com/k88hudson/git-flight-rules><br>

create a new repository then duplicate your code from last project to it.

```bash
git clone --bare https://github.com/exampleuser/old-repository.git

cd old-repository.git
git push --mirror https://github.com/exampleuser/new-repository.git

cd ..
rm -rf old-repository.git
```

Source: <https://help.github.com/articles/duplicating-a-repository/>
