Search code examples
pythongithubcomments

How to add comments in a code available on GitHub?


I am trying to understand a Python code available on GitHub. The project is kind of large, when I understand the code available in one file and try to understand the code in another file, I forget some of the previous concepts (that I have understood in the previous files).

Is there any way I could add comments or a little description of each line while understanding the code in GitHub project? I know I can download the code and add comments using some IDE or Notepad etc. But it would be difficult for me while training, as I have to clone the project for training.


Solution

  • I suggest you fork the code, and add comments to the code itself, on your copy of the repository. You can edit the files inside GitHub, no need to download the code.