I cloned a github repo using !git clone https://github.com/llSourcell/Pokemon_GAN.git. I wanted to modify a .py file inside Colab. So i used %load fil
!git clone https://github.com/llSourcell/Pokemon_GAN.git
%load fil
Easiest solution just double click on the file you want to edit.The file opens and edit the file,save it and that's that.You are done