Glünggi wrote:Idk ... i just cant upload files. Edit code directly on github working.... but files like textures dosnt.
Thank you for the link, maybe it help.
The tutorial will definitely help you, but I'll also leave some tips here:
- You're not going to edit your files there. You'll just create a git repo inside your game folder (cd into it and do git init), add all the game files to it (git add *) and then commit (git commit, and it'll give you a text editor to write a description of the commit)
- Before commiting for the first time, configure git to commit using your name and email:
- Code: Select all
git config --global user.name "Your Name"
git config --global user.email your_email@example.com
- After that, each time you have a 'new version' ready, you need to add only the files you have changed(you can see which files changed by running git status and them add them with git add the name of each file) and then commit. The description is usually a place for you to write what you have changed.
- To use github, after creating your repo there, use:
- Code: Select all
git remote add origin https://github.com/your_user_name/your_repo_name.git
git push -u origin master
- After that, each time you want to push your changes to github, after making the commit as I explained before, just use
- Code: Select all
git push
Hope it helps