- 1 year ago
Download GitHub repo as zip on Windows, including CRLF
Comment
1 / 1
To download a GitHub repository as a ZIP file on Windows, you can use the following steps:
- Go to the GitHub repository page you want to download.
- Click on the "Code" button and select "Download ZIP". This will download the repository as a ZIP file to your Downloads folder by default.
- Unzip the ZIP file using a tool like 7-Zip or the built-in Windows unzip tool.
- If you want to preserve CRLF line endings in the files, you can use the following command in Git Bash or another shell that supports the
git
command:
This will turn off the automatic conversion of line endings that Git normally performs on Windows. You can then clone the repository using Git instead of downloading it as a ZIP file:arduinogit config --global core.autocrlf false
This will create a local copy of the repository with CRLF line endings preserved.bashgit clone https://github.com/username/repo.git