diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-08-08 20:00:30 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-08-08 20:00:30 +0200 |
| commit | 74bddf441aba5dbe605cab8a2d53c288fb26a0d5 (patch) | |
| tree | b69a16b461048dc4363f7b6676b1d88fcd0debe0 | |
| parent | 4fd3439902c6e2dcb16339544c8f8fc249f9f748 (diff) | |
| download | dotfiles-74bddf441aba5dbe605cab8a2d53c288fb26a0d5.tar.gz dotfiles-74bddf441aba5dbe605cab8a2d53c288fb26a0d5.zip | |
Info on installing bare git repository
| -rw-r--r-- | README.md | 23 |
1 files changed, 22 insertions, 1 deletions
@@ -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 - - - |
