Hi guys

I'm having some problems with git currently:
If i pull from the git repo all files are owned by root and i cant change ownership żżż
After asking google it seems that this has something to do with the fact that my git user does not exist on my system so the files that i pulled using my git account are automatically owned by root.
Makes sense i guess, but i still dont understand why i cant chown them? ?

What would be the best way to fix this?  create my git user account on my laptop or create a new github user that does exist on my laptop or. ..

Al tips are welcome!