Dup Goto 📝

Git Bare Repos

To Pop
10 lines, 79 words, 553 chars Friday 2023-11-10 11:54:06

From theserverside.com

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.