Nilavara

Syncing Git repos locally

Create a bare git repo

mkdir ~/my-bare-repo && cd ~/my-bare-repo
git init --bare

Now you can use this bare repo as the target for pushing and pulling from your local copy.

git push ~/my-bare-repo main