„README.md“ ändern
This commit is contained in:
parent
784bb7ac3c
commit
66b5881b96
14
README.md
14
README.md
@ -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/
|
# 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/>
|
||||||
I'll save it here for backup. And reformated a bit for layouting to markup language.
|
|
||||||
|
|
||||||
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.
|
> 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
|
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:
|
If you haven't been tracking your configurations in a Git repository before, you can start using this technique easily with these lines:
|
||||||
|
Loading…
Reference in New Issue
Block a user