„README.md“ ändern

This commit is contained in:
templis 2021-01-08 02:53:19 +01:00
parent 784bb7ac3c
commit 66b5881b96
1 changed files with 8 additions and 6 deletions

View File

@ -1,13 +1,15 @@
DISCLAIMER: this is not my work I've the whole text and idea from https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/
I'll save it here for backup. And reformated a bit for layouting to markup language.
# DISCLAIMER: this is not my work I've the whole text and idea from https://developer.atlassian.com/blog/2016/02/best-way-to-store-dotfiles-git-bare-repo/<br/>
Recently I read about this amazing technique in an Hacker News thread on people's solutions to store their dotfiles. User StreakyCobra showed his elegant setup and ... It made so much sense! I am in the process of switching my own system to the same technique. The only pre-requisite is to install Git.
In his words the technique below requires:
## In his words the technique below requires:
> No extra tooling, no symlinks, files are tracked on a version control system, you can use different branches for different computers, you can replicate you configuration easily on new installation.
but:
- git
- curl
The technique consists in storing a Git bare repository in a "side" folder (like $HOME/.cfg or $HOME/.myconfig) using a specially crafted alias so that commands are run against that repository and not the usual .git local folder, which would interfere with any other Git repositories around.
## How it work
The technique consists in storing a Git repository in a "side" folder (like $HOME/.cfg or $HOME/.myconfig) using a specially crafted alias so that commands are run against that repository and not the usual .git local folder, which would interfere with any other Git repositories around.
Starting from scratch
If you haven't been tracking your configurations in a Git repository before, you can start using this technique easily with these lines: