Git server (bare repositories)

  1. Have a SSH service working
  2. Install git for windows as normal
  3. Set default shell for ssh to Git bash

    PS C:\Users\Administrador> New-ItemProperty -Path "HKLM:\SOFTWARE\OpenSSH" -Name DefaultShell -Value "C:\Program Files\Git\bin\bash.exe" -PropertyType String -Force
    
  4. Create a repo with git init --bare repo.git at $HOME
  5. Clone it from another machine.