autopushed

This commit is contained in:
2022-06-11 23:41:13 +02:00
parent ccb264e419
commit 8c80295971
+6 -3
View File
@@ -19,7 +19,7 @@ git add .
git commit -m 'Initial commit from paramita." git commit -m 'Initial commit from paramita."
``` ```
After creating an empty repo in any host (I used [[gitlab]]), you can upload the local repo as per usual [[git]] instructions: After creating an empty repo in any host (I used [[gitlab]]), you can upload the local repo you cd'd into above as per standard [[git]] procedure:
``` ```
git remote add origin git@gitlab.com:flancian/flancian.git git remote add origin git@gitlab.com:flancian/flancian.git
@@ -27,7 +27,7 @@ git branch -M main
git push -u origin main git push -u origin main
``` ```
Then for syncing into a new machine, you just pass the repo as argument to `chezmoi init`: Then for syncing files into a new machine, you install chezmoi and then pass the repo as argument to `chezmoi init`:
``` ```
sh -c "`curl -fsLS chezmoi.io/get`" sh -c "`curl -fsLS chezmoi.io/get`"
@@ -35,7 +35,8 @@ chezmoi init https://gitlab.com/flancian/flancian
chezmoi apply -v chezmoi apply -v
``` ```
To upload changes to files already tracked by chezmoi: To upload changes to files already tracked by chezmoi from any host:
``` ```
chezmoi readd chezmoi readd
chezmoi cd chezmoi cd
@@ -43,3 +44,5 @@ git commit -a -m "chezmoi from $HOSTNAME"
git push git push
``` ```
[[Chezmoi]] supports [[templates]] to special-case files depending on the host they're being installed in, but I haven't experimented with them yet.