tags: version-control git title: Git Bare Repos From [theserverside.com](https://www.theserverside.com/blog/Coffee-Talk-Java-News-Stories-and-Opinions/Quickly-create-a-git-bare-repo-with-init-or-clone) ## Creating a bare repo There are two ways to create a bare Git repo: 1. Clone an existing repository with the `git clone --bare` switch. 2. Create a new bare git repo with the `git init --bare` switch. Obviously, you should use the bare git init approach when you are starting a brand new project. And use the clone when a Git repo is active and you want to create a backup or extra node point.