Open taikedz opened 7 years ago
Well, how do I put all images in at once? I can't put a folder.
You don't normally just upload from the web interface at all ! GitHub is best used for syncing files between your computer and GitHub using the Git tools
You can use a Graphical User Interface client: https://git-scm.com/downloads/guis
A guide is here: https://guides.github.com/introduction/getting-your-project-on-github/
Here's a rundown of creating a Minetest mod with Git and GitHub fully explained: https://www.youtube.com/watch?v=dTEFos-D41U&t=12m17s
If you can open a command line in your operating system (in Windows, after installing Git and GitBash, you can run the Git Bash program for this; macOS and Ubuntu come with it pre-installed), you can do the following to convert your GitHub repository:
(the lines starting with "#" are code comments, which means they're just there to talk about what is happening, you don't need to type them as commands)
# Make sure you have the unzip tool (Ubuntu only)
sudo apt-get install unzip -y
# Clone the GitHub repository onto your laptop
git clone "https://github.com/PinkyKitty/PinkCraft/"
cd PinkCraft
unzip PinkCraft.zip
# Remove the ZIP file - we have just unpacked it and we won't be needing it anymore
rm PinkCraft.zip
# Move the textures to the top level of the repository's folder
mv PinkCraft/* ./
# Here's where the sync / upload happens !
# Tell git you want to add all the files (`.`)
git add .
# Tell git what you are adding
git commit -m "Converted from ZIP to a trackable folder of files"
# Upload ! You will be asked for your GitHub user name and password
git push origin master
I had problems even downloading the ZIP through the git tools myself (unpacking
takes a while but have patience).... but I would caution it as another indication that simply putting big binary files like ZIPs on github is not a good idea... The ZIP is now in the history of the repository, so this may always be the case until you create a fresh repository that has never had the ZIP in it before - but that's for another day.
Congrats on learning a bit of github :-)
For modpacks though, you just need to put all files directly in a
textures/
folder.GitHub takes care of zipping for you:
Git powerusers can simply clone your repository directly to their texturepacks folder (mainly used by server admins)
Always make it easier for the downloader ;-)