Turn a non-bare repo into a bare one

Lets assume we have a local repo called my-shell-stuff.

cd my-shell-stuff
mv .git ../my-shell-stuff.git
cd ../my-shell-stuff.git
git config --bool core.bare true
pub/tech/git/turn-non-bare-repo-to-bare.txt · Last modified: 2024/02/18 09:33