Closed arz1gwa closed 4 weeks ago
git checkout -b <branchname>
is correct on all platforms - I work on both Windows and Linux. I can't explain your problem but the tutorial is correct.
I also don't know why. Which shell are you using? Git bash, WSL, or something else?
I would assume the content is correct and works for everyone else, unless more information can be provided.
MDN URL
https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/skeleton_website
What specific section or headline is this issue about?
Don't forget to backup to GitHub
What information was incorrect, unhelpful, or incomplete?
In Django Part 2, heading 'Don't forget to backup' in the line git checkout -b skeleton_website # Create and activate a new branch "skeletonwebsite" I kept getting this error 'fatal: Cannot update paths and switch to branch 'skeletonwebsite' at the same time.' until I changed the -b to -B. Does that only happen in Windows? Windows 11 Pro 23h2, Django 4.2.12, Git 2.45.2.windows.1
What did you expect to see?
Switched to a new branch 'skeleton_website'
Do you have any supporting links, references, or citations?
No response
Do you have anything more you want to share?
No response
MDN metadata
Page report details
* Folder: `en-us/learn/server-side/django/skeleton_website` * MDN URL: https://developer.mozilla.org/en-US/docs/Learn/Server-side/Django/skeleton_website * GitHub URL: https://github.com/mdn/content/blob/main/files/en-us/learn/server-side/django/skeleton_website/index.md * Last commit: https://github.com/mdn/content/commit/cde9330e9bbaddea72febf44dcc3a7db16fe1a11 * Document last modified: 2024-07-26T02:12:21.000Z