Thanks for trying to put your project on github. This is a good step. You seem to have done something wrong though. You placed all your code in the file .gitignore
. This is incorrect. .gitignore
is a file that only contains the type of files you don't want to end up in your repo when you commit/push.
Here is an example of what your .gitignore
file should look like (in fact you could use this file exactly):https://github.com/Mekire/meks-pygame-samples/blob/master/.gitignore
It seems you accidentally named your repo the name of the script and for some reason put your code in the gitignore. Git is a bit tricky to use at first so feel free to ask if you get stuck. Assuming the original file is in the repository directory on the computer you work on, change the .gitignore to look like the above file. Then save your actual code as 'whatever.py'. Then add both of these changes with:
- Code: Select all
git add *
git commit -m "some commit message"
git push origin master
Followed by entering your username and password.
Oh yeah, one more thing. Since you have a repo there is no need to make users download your resources from the web with urllib. Just place the actual resources in your repo like anything else.