Skip to content

Commit 4ecc7c8

Browse files
authored
Update git pr instruction
On Windows, the single and double quotes should be reversed Closes #217
1 parent 4150170 commit 4ecc7c8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

gitbootcamp.rst

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,10 @@ Scenario:
216216
Set up the following git alias::
217217

218218
$ git config --global alias.pr '!sh -c "git fetch upstream pull/${1}/head:pr_${1} && git checkout pr_${1}" -'
219+
220+
On Windows, reverse the single (`'`) and double (`"`) quotes::
221+
222+
git config --global alias.pr "!sh -c 'git fetch upstream pull/${1}/head:pr_${1} && git checkout pr_${1}' -"
219223

220224
The alias only needs to be done once. After the alias is set up, you can get a
221225
local copy of a pull request as follows::

0 commit comments

Comments
 (0)