Thursday, November 25, 2021

chezmoi saving your config files versioned


 



pacman -Syu chezmoi

chezmoi init (make a new dir  ~/.local/share/chezmoi)

chezmoi add ~/.bashrc

chezmoi [add|edit|update]  ~/.bashrc

chezmoi cd (~/.local/share/chezmoi)

git remote add origin https://github.com/j3nnn1/dotfiles.git

git branch -M main

git push -u origin main 

 

Additional config:

git config pull.ff true

git config pull.rebase true

and that's all.

No comments:

Post a Comment