To download specific files from a GitHub repository (like the images from the mobile/assets/images directory in the react-native-recipe-app repository) without cloning the entire repository, you have a few options:
Option 1: Download the files directly from GitHub
-
Navigate to the directory in GitHub:
https://github.com/burakorkmez/react-native-recipe-app/tree/master/mobile/assets/images
-
Click on each file you want to download, then click the "Download" button (or "Raw" button for some file types) to save it to your local machine.
Option 2: Use svn to download only the specific directory
If you have svn installed, you can use it to download just the images directory:
svn export https://github.com/burakorkmez/react-native-recipe-app/trunk/mobile/assets/images
This will download the contents of the images directory to your current local directory.
Option 3: Use git sparse-checkout (advanced)
If you want to use git but only clone a specific directory, you can use sparse-checkout:
git clone --filter=blob:none --no-checkout https://github.com/burakorkmez/react-native-recipe-app.git
cd react-native-recipe-app
git sparse-checkout init --cone
git sparse-checkout set mobile/assets/images
git checkout
This will clone only the mobile/assets/images directory.
Option 4: Use a GitHub download tool
There are third-party tools like DownGit (https://minhaskamal.github.io/DownGit/) where you can paste the GitHub URL and download the files.
Option 5: Use wget or curl to download files individually
If you know the exact URLs of the files, you can use wget or curl to download them. For example:
wget https://raw.githubusercontent.com/burakorkmez/react-native-recipe-app/master/mobile/assets/images/example.png
Choose the method that best fits your needs! Let me know if you need further clarification.