docs: move subtree section

This commit is contained in:
Michel 2024-04-24 15:07:30 +02:00
parent 59928f6906
commit 5a5330760c
1 changed files with 10 additions and 10 deletions

View File

@ -65,16 +65,6 @@ skelfiles checkout
lazygit --git-dir=$HOME/.dotfiles --work-tree=$HOME
```
# Install remotes as subtree
- <https://www.atlassian.com/git/tutorials/git-subtree>
- Create an alias for remote repository
- `dotfiles remote add <remote-name> <URL>`
- Import remote as a single commit (squashed)
- `dotfiles subtree add --prefix <target-folder> <remote-name> <branch> --squash
- Note 1: Must be called from $HOME
- Note 2: Do not start <target-folder> with $HOME or ~
# Every-day Tools
Recommended installation order:
@ -97,6 +87,16 @@ Recommended installation order:
See <https://specifications.freedesktop.org/desktop-entry-spec/latest/>
### GIT remotes as subtree
- <https://www.atlassian.com/git/tutorials/git-subtree>
- Create an alias for remote repository
- `dotfiles remote add <remote-name> <URL>`
- Import remote as a single commit (squashed)
- `dotfiles subtree add --prefix <target-folder> <remote-name> <branch> --squash
- Note 1: Must be called from $HOME
- Note 2: Do not start <target-folder> with $HOME or ~
### Github Patches
From [stackoverflow](https://stackoverflow.com/questions/28484186/apply-github-commit-pull-request-as-a-patch).