Skip to content

Commit

Permalink
git config commands need double quotes instead of single quotes (#221)
Browse files Browse the repository at this point in the history
You might want to test this on other devices/OSs, and if this doesn't work across the board then there should be a note that different quotes are needed based on your OS.

I'm on a freshly reformatted Windows 10 Pro, using the classic Windows Command Prompt, and I noticed that when using single quotes, the value gets cut off at whitespace:

```cmd
C:\Users\Dean>git config --global user.name 'Jane Doe'

C:\Users\Dean>git config --global --list
user.name='Jane

C:\Users\Dean>git config --global --unset-all user.name

C:\Users\Dean>git config --global user.name "Jane Doe"

C:\Users\Dean>git config --global --list
user.name=Jane Doe
```
  • Loading branch information
daattali authored Sep 26, 2023
1 parent dd8af14 commit a28be6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions install-introduce-self-git.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
In the shell (Appendix \@ref(shell)):

``` bash
git config --global user.name 'Jane Doe'
git config --global user.email '[email protected]'
git config --global user.name "Jane Doe"
git config --global user.email "[email protected]"
git config --global --list
```

Expand Down

0 comments on commit a28be6d

Please sign in to comment.