From 74bddf441aba5dbe605cab8a2d53c288fb26a0d5 Mon Sep 17 00:00:00 2001 From: srdusr Date: Tue, 8 Aug 2023 20:00:30 +0200 Subject: Info on installing bare git repository --- README.md | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 34ff830..b01b271 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,27 @@ # Dotfiles > NOTE: Primarily for Linux but currently under work to make this as agnostic/cross-platform as possible +## Installing onto a new system (bare git repository) + 1. Avoid weird behaviour/recursion issues when .cfg tries to track itself + ```bash + $ echo ".cfg" >> .gitignore + ``` + 2. Clone this repo + ```bash + $ git clone --bare https://github.com/srdusr/dotfiles.git $HOME/.cfg + ``` + 3. Set up the alias 'config' + ```bash + $ alias config='git --git-dir=$HOME/.cfg --work-tree=$HOME' + ``` + 4. Set local configuration into .cfg to ignore untracked files + ```bash + $ config config --local status.showUntrackedFiles no + ``` + 5. Checkout + ```bash + $ config checkout + ``` - - - ## Dependencies @@ -262,7 +283,7 @@ $ sudo chmod -R g+w /opt/flutter/ ```bash $ sudo chown -R $USER /opt/flutter ``` -- Continue to step ***Android Studio*** section to complete setup +- Continue to step ***Development Tools/Android Studio*** section to complete setup - - - -- cgit v1.2.3