This little tool can be used to manage dot file based on a git bare repository. The basic manual process is described e.g. https://www.atlassian.com/git/tutorials/dotfiles
If you want to initialize a new repo you could just run dof init. This will basically setup a local git repository which can be used to add the dot files via dof add .dotfilename. Right now you have to manually add a remote to be able to publish the dot file repository e.g. to github. You can do this with the following command dof alias remote add origin <path-to-git-remote-repo>, git config --global init.defaultBranch main and dof alias branch set-upstream-to origin/main main. Afterward you can run dof sync to push all add files to the remote.
If you want to checkout an existing repository you can just run dof checkout <git-remote-repo>. This command will checkout the repository as a bare repo. Afterwards it will identify all included dot files, rename them and run a checkout on the bare repo. Afterwards you will have your dotfiles setup in your home directory from the dot file repo.
This repo uses https://github.com/marketplace/actions/go-release-binaries to build go binaries