Guide:Using Github
|
|
This page is community guidance. Please note that guides are general advice written by members of the community, not VNDev Wiki administrators. They might not be relevant or appropriate for your specific situation. Learn more Community contributions are welcome - feel free to add to or change this guide. |
| This article needs expansion. You can help by adding to it. |
For an introduction including key terms, check source control.
Git, Github, and Source Control are different. Git is a tool used for source control (managing code), but other tools exists. Github is a service that host software that uses Git. But it is possible to use Git without Github.
This page focus on using Github because it's free and accessible. However, it should be kept in mind that it has drawbacks, but that doesn't mean you can't use Git. There's others ways to use Git, and it's key to manage your coding project successfully, especially when working with others.
Why shouldn't I use Github?
Github is owned by Microsoft, and all of the code and assets that are uploaded on Github, ie, on Microsoft's servers, are subject to their Terms of Service. In particular, for VNDevs, the main things to consider are:
- No NSFW Content.
- The service could be shutdown at any time. Don't use Github as a form of backup.
- Certain options, like extra storage for big files (GitLFS) are paid. But aren't needed for beginners.
- The ties with Copilot, Microsoft AI/LLM service, has been controversial. Github claims to not scan private repositories to train Copilot, but use this information at your best judgement.
Aside from that, Github is one of the most used and fully fleshed online Git service, aside from Gitlab. If you consider the above as acceptable, it's really worth considering using.
Why should I use Github?
| This section is empty. You can help by adding to it. |
Getting started guide
Similar information & additional details are available in this Intro to Git for Ren'Py tutorial from Anigrams Productions.
Do it once
You can use GitHub either with the Command Line Interface (CLI) or GitHub Desktop. Installing GitHub Desktop also installs Git for the CLI. Another option is to use the integrated Git extension inside Visual Studio Code (Assuming it's already your IDE/Coding software of choice).
Git CLI
- Create a GitHub account here
- Install Git here
- Set your GitHub username and email on the CLI (refer here and here)
- Create a personal access token, set it to never expire and save it somewhere (steps here)
GitHub desktop
- Create a GitHub account here
- Install GitHub Desktop here
- Authenticate your GitHub account (check here)
New game setup
With every new game.
Git CLI
- Create a new repository on GitHub (steps here)
- Google for the gitignore file of your game engine (here's renpy)
- Add the .gitignore file in the repository and commit on GitHub (refer here)
- Clone the repository to your computer (steps here)
- Add your game files to the repository and commit in CLI
git commit -m "add game files !"
- To update the repository on GitHub, push in CLI (enter your token when asked for password)
git push
- Happy jamming!
GitHub Desktop
- Create a new repository on GitHub (steps here)
- Google for the gitignore file of your game engine (here's renpy)
- Add the .gitignore file in the repository and commit on GitHub (refer here)
- Clone the repository to your computer (refer here)
- Add your game files to the repository and commit in GitHub Desktop (check here)
- To update the repository on GitHub, push origin in GitHub Desktop (refer here)
- Happy jamming!
For more references on getting started with GitHub, here's the official docs.