Skip to content

Commit 637dac1

Browse files
authored
Merge pull request #841 from andschwa/alias-note
Add note about setting Git alias before importing module
2 parents fa3b1f5 + efe3aa7 commit 637dac1

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,10 @@ Save the profile script, then close PowerShell and open a new PowerShell session
198198
Type `git fe` and then press <kbd>tab</kbd>. If posh-git has been imported, that command should tab complete to
199199
`git fetch`.
200200

201+
If you want posh-git to detect your own aliases for git, then you *must* have set the alias *before* importing posh-git.
202+
So if you have `Set-Alias g git` then ensure it is executed before `Import-Module posh-git`, and `g checkout` will
203+
complete as if you'd typed `git`.
204+
201205
## Git status summary information
202206

203207
The Git status summary information provides a wealth of "Git status" information at a glance, all the time in your

0 commit comments

Comments
 (0)