diff options
| author | srdusr <[email protected]> | 2022-12-12 23:52:40 +0200 |
|---|---|---|
| committer | srdusr <[email protected]> | 2022-12-12 23:52:40 +0200 |
| commit | fb6864440d2727563adad623ed782b442f56ab60 (patch) | |
| tree | e8b7b5de808fc03f3ea22c3bf57d7f3e769f0623 /tools | |
| parent | 7f5541440b0981acbeff283548a3404586bf0827 (diff) | |
| download | notes-fb6864440d2727563adad623ed782b442f56ab60.tar.gz notes-fb6864440d2727563adad623ed782b442f56ab60.zip | |
Instructions on cloning dotfiles to a new system
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/git.md | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tools/git.md b/tools/git.md index a80317b..dd117ac 100644 --- a/tools/git.md +++ b/tools/git.md @@ -25,6 +25,27 @@ config add .bashrc config commit -m "Added bashrc" config push ``` +- Installing onto a new system +1. Avoid weird behaviour/recursion issues when .cfg tries to track itself +```bash +echo ".cfg" >> .gitignore +``` +2. Clone the repo +```bash +git clone <remote-git-repo-url> $HOME/.cfg +``` +3. Set up the alias 'config' +```bash +alias config='/usr/bin/git --git-dir=<path to .cfg’s Git directory> --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 +``` config submodule add https://github.com/user/repo.git .path/to/repo |