meta data for this page
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| wiki:version_control [2026/10/29 12:55] – tmh | wiki:version_control [2026/11/02 09:33] (current) – [What is Github or a git forge?] minor edit tmh | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | # Version control | + | # Version control |
| + | |||
| + | ## Video tutorial | ||
| + | After reading this quick guide, and learning the basic concepts, you can check out this [video tutorial](https:// | ||
| ## What is Git? | ## What is Git? | ||
| - | Git is a version control system. It means it can track differences in files and keep their history. It is most suited for tracking text files (including code), because the differences are easy to read and when a file has conflicting changes from multiple development tracks, these conflicts can be solved. However, it can also track binary files, like spreadsheets or images or anyhthing | + | Git is a version control system. It means it can track differences in files and keep their history. It is most suited for tracking text files (including code), because the differences are easy to read and when a file has conflicting changes from multiple development tracks, these conflicts can be solved. However, it can also track binary files, like spreadsheets or images or anything |
| A **git repo** is a directory (" | A **git repo** is a directory (" | ||
| Line 16: | Line 19: | ||
| Github is a hosting platform for **remote repositories**, | Github is a hosting platform for **remote repositories**, | ||
| - | So far, Eurogreen and Fingreen are hosted on Github. New projects could benefit from using Codeberg, with a better free featureset and European ownership of the platform. | + | So far, Eurogreen and Fingreen are hosted on Github. New projects could benefit from using Codeberg, with a better free featureset and European ownership of the platform. In any case, it is easy to migrate a project from one host to another. |
| ## Guidelines for working with git effectively | ## Guidelines for working with git effectively | ||
| Line 28: | Line 31: | ||
| ### Pull-requests | ### Pull-requests | ||
| - | Instead of just pushing our changes directly into main, it is usually a good idea to open pull requests instead. They could actually be called merge requests, because the idea is to merge some changes from one branch into another. A pull request can be viewed and commented in Github, and it is a good idea to have another developer review the changes. This encourages better quality and compliance with common guidelines, improves catching bugs early, and the team is better kept up to date on what is going on in the model. | + | Instead of just pushing our changes directly into main, it is usually a good idea to open pull requests instead. They could actually be called merge requests, because the idea is to merge some changes from one branch into another. A pull request can be viewed and commented in Github, and it is a good idea to have another developer review the changes. This encourages better quality and compliance with common guidelines, improves catching bugs early, and the team is better kept up to date on what is going on in the model. Creating a pull request is covered in the [video tutorial](..wiki: |
| ### Resolving conflicts | ### Resolving conflicts | ||
| + | Conflicts can arise if we try to merge or rebase our changes with someone else's changes: both modified the same file and now git does not know how to combine the changes or which one to prefer. A basic example of conflict resolution is shown in the [video tutorial](..wiki: | ||
| + | |||
| + | ### Ignoring files | ||
| Upcoming | Upcoming | ||
| + | |||
| ### When to commit and how to write a good commit message? | ### When to commit and how to write a good commit message? | ||