I am actually learning how to write plugins and I am trying to figure out what is the best practice relating git.
What i have done so far (relating git) is:
1. Cloned https://github.com/moodle/moodle.git
2. Checkout of MOODLE_311_STABLE
I know that I need an own repository for the plugin, but I am unsure how to add changes etc. to my plugin repository without affecting the main repository. I know there is a lot of tutorials/manuals out there but it's so much that I am confused what is the right way for me (some sources are very old or depricated and so on...)
3. Create a git submodule in a new subdirectory inside the main moodle directory??
Another option would be to just download the MOODLE_311_STABLE-branch as a zip-file but that sounds a bit odd/unprofessional.
Some links with the actual way to go would be enough!