HomeToolsAbout

Local Repo

How to setup local repo

Create a new folder in local destination

Create a bare repository

git init --bare

Add the location of the new repository as the remote location

git remote add remote_repo_name /path/to/local_remote

Push initial commits to the local_remote location

git push -u origin default_branch_name
  • -u stands for setting the upstream for the first time
AboutContact