aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-08-08 20:00:30 +0200
committersrdusr <trevorgray@srdusr.com>2023-08-08 20:00:30 +0200
commit74bddf441aba5dbe605cab8a2d53c288fb26a0d5 (patch)
treeb69a16b461048dc4363f7b6676b1d88fcd0debe0
parent4fd3439902c6e2dcb16339544c8f8fc249f9f748 (diff)
downloaddotfiles-74bddf441aba5dbe605cab8a2d53c288fb26a0d5.tar.gz
dotfiles-74bddf441aba5dbe605cab8a2d53c288fb26a0d5.zip
Info on installing bare git repository
-rw-r--r--README.md23
1 files changed, 22 insertions, 1 deletions
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
- - -