At some point I should make a script to deploy this configuration, but for now I just perform the below steps.
Initialize git repository in $HOME
.
cd ~ git init
Add this repository as a remote.
git remote add origin '[email protected]:bkhl/dotfiles'
Make status
ignore untracked files. This way you won’t get a huge list of your regular files in the status commands. Some people may prefer a .gitignore
with a *
in it to ignore all files, which would also affect git add
, but I haven’t found I need that.
git config status.showUntrackedFiles no
Checkout the main branch. Will overwrite files in home directory if needed.
git checkout -f main
Initialize the submodules.
git submodule update --init