We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d8483e5 commit 271fc3eCopy full SHA for 271fc3e
1 file changed
getting-started/git-boot-camp.rst
@@ -462,12 +462,19 @@ Or set up a Git alias:
462
463
git config --global alias.pr '!sh -c "git fetch upstream pull/${1}/head:pr_${1} && git switch pr_${1}" -'
464
465
-.. tab:: Windows
+.. tab:: Windows cmd
466
467
.. code-block:: dosbatch
468
469
git config --global alias.pr "!sh -c 'git fetch upstream pull/${1}/head:pr_${1} && git switch pr_${1}' -"
470
471
+.. tab:: Windows Powershell
472
+
473
+ .. code-block:: shell
474
475
+ git config --global alias.pr '!f() { git fetch upstream pull/$1/head:pr_$1 && git checkout pr_$1; }; f'
476
477
478
The alias only needs to be done once. After the alias is set up, you can get a
479
local copy of a pull request as follows::
480
0 commit comments