You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
- Existing local git hooks may still point to the old path and fail
8
+
9
+
Migration steps:
10
+
11
+
```powershell
12
+
git submodule sync --recursive
13
+
git submodule update --init --recursive
14
+
.\tools\install-hooks.ps1
15
+
```
16
+
3
17
## Profile installation
4
18
5
19
Put this in `$PROFILE.CurrentUserAllHosts`:
@@ -41,28 +55,28 @@ Install local git hooks:
41
55
Installed hooks:
42
56
-`pre-commit` (lightweight no-op)
43
57
-`commit-msg` (runs `tools/ci.ps1`)
44
-
- hook logic is sourced from `modules/GitAliases.Extras/tools/hooks/*` to avoid duplication
58
+
- hook logic is sourced from `modules/git-aliases-extra/tools/hooks/*` to avoid duplication
45
59
46
60
Checks are skipped when:
47
61
- commit message contains `[skip precommit hook]` or `[skip pch]`
48
62
- there are no working tree changes (for example, `git commit --allow-empty ...`)
49
63
50
-
## Extract GitAliases.Extras
64
+
## Extract git-aliases-extra
51
65
52
-
Recommended approach: keep this as dotfiles repo and move `modules/GitAliases.Extras` to its own repository, then consume it via git submodule at the same path.
66
+
Recommended approach: keep this as dotfiles repo and move `modules/git-aliases-extra` to its own repository, then consume it via git submodule at the same path.
53
67
54
68
Safe migration flow:
55
69
56
70
1. Run a dry run:
57
71
58
72
```powershell
59
-
.\tools\migrate-gitaliases-extras.ps1 -SubmoduleUrl 'git@github.com:<you>/GitAliases.Extras.git' -SubmoduleBranch main -PushSplit
73
+
.\tools\migrate-git-aliases-extra.ps1 -SubmoduleUrl 'git@github.com:<you>/git-aliases-extra.git' -SubmoduleBranch main -PushSplit
60
74
```
61
75
62
76
2. Apply the migration:
63
77
64
78
```powershell
65
-
.\tools\migrate-gitaliases-extras.ps1 -SubmoduleUrl 'git@github.com:<you>/GitAliases.Extras.git' -SubmoduleBranch main -PushSplit -Apply
79
+
.\tools\migrate-git-aliases-extra.ps1 -SubmoduleUrl 'git@github.com:<you>/git-aliases-extra.git' -SubmoduleBranch main -PushSplit -Apply
66
80
```
67
81
68
82
3. Commit resulting changes in this repo (`.gitmodules` + submodule pointer).
@@ -71,12 +85,12 @@ Notes:
71
85
-`bootstrap.ps1` now initializes submodules automatically if `.gitmodules` exists.
72
86
-`profile.ps1` warns with the exact `git submodule update --init --recursive` command if submodules were not initialized.
73
87
74
-
P.S. You can also install just [GitAliases.Extras](https://github.com/PhysShell/GitAliases.Extras) without dotfiles as standalone powershell package
88
+
P.S. You can also install just [git-aliases-extra](https://github.com/PhysShell/git-aliases-extra) without dotfiles as standalone powershell package
75
89
76
90
## What CI checks
77
91
78
92
-`PSScriptAnalyzer` linting with `PSScriptAnalyzerSettings.psd1`
79
-
-`Pester` tests in `tests\` plus `modules\GitAliases.Extras\tests\`
93
+
-`Pester` tests in `tests\` plus `modules\git-aliases-extra\tests\`
0 commit comments