From 106098d1daf667637cce22f6afd7b2c6d5ca41a4 Mon Sep 17 00:00:00 2001 From: DustVoice Date: Sun, 23 Jul 2023 01:42:20 +0200 Subject: [PATCH] Switch dotfiles over to main branch naming convention and mentioon git switch for initialization --- DustArch.typ | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/DustArch.typ b/DustArch.typ index f0a8c4e..507be52 100644 --- a/DustArch.typ +++ b/DustArch.typ @@ -1720,12 +1720,29 @@ To achieve this very specific setup, I have to turn my home directory into said git fetch - git reset origin/master --hard + git reset origin/main --hard - git branch --set-upstream-to=origin/master master + git branch --set-upstream-to=origin/main main ``` ] +#important[ + This has lead to some problems in the past. + Generally I would try and use the new #cmd[`git switch`] command like so: + + #terminal("~")[ + ``` + git init + + git remote add origin https://git.dustvoice.de/DustVoice/dotfiles.git + + git fetch + + git switch -C main origin/main + ``` + ] +] + Now I can issue any `git` command in my `$HOME` directory because it now is a `git` repository. === Set up `gpg`