Step 1, create an environment variable for the repository directory: set repo=\\serverName\share\repos\myRepo.git Step 2, create the repository directory and open it: mkdir %repo% pushd %repo% Step 3, initialize the bare, shared repository and go back to the local repository: git --bare init --shared popd Step 4, push the local repository, master branch to the remote repository: git push %repo% master Step 5, define the remote origin for the local repository: git remote add origin %repo% If you ever need to move a remote repository, update your local copy's remote like so: git remote -v git remote set-url origin //newServerName/newShare/repos/myRepo.git Reference Git on windows:Creating a network shared central repository